php - Get user information from mysql database -


i'm trying easy user management. want select , display information mysql database.

i have connected database , works fine. , have log in form , registration works fine. when user logged in want display information , user should able update it.

can use simple thing this:

<?php  $firstname= $_session['user_name']; $email= $_session['user_email'];   if ($email!= null) { echo $email;  } else { echo 'no email found'; } ?> 

you leaving lot out, hard know want do, can use update statement change database values have been inserted.

update users set user_email = 'some_email' user_name = 'some_user'; 

other i'm not sure you're asking for. whole html form?


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -