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
Post a Comment