son.of.the.morning Posted September 15, 2010 Share Posted September 15, 2010 I want the user to input there name, then have a php script to find the memeber in a members database and then grab the whole row by the user name. so if my db has 3 colums id, user, password, then want it to take out all three fields based on the users name. Can anyone help me? Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted September 15, 2010 Share Posted September 15, 2010 http://www.w3schools.com/PHP/php_mysql_select.asp Quote Link to comment Share on other sites More sharing options...
coupe-r Posted September 16, 2010 Share Posted September 16, 2010 $result = mysql_query("SELECT * FROM "TABLE" WHERE username = '".$_POST['username_txt']."'"); $row = mysql_fetch_array($result); echo $row['username']; username_txt = the name of the text box the user entered data into. username = the username column in the database Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.