In your PHP code, try using the query that I posted above.
Example:
Code:
<?php
$name = $_REQUEST['name'];
include('dbconnect.php'); //this will open the connection to the database
$info = mysql_query("SELECT * FROM `tableNameHere` WHERE `NAME`='$name'");
while ($qry = mysql_fetch_array($info)) {
echo $qry['password'];
}
?>
Basically what the above does is search through the database and returns results of the rows in the table that the column "NAME" matches to the variable "$name". After it gets the results, we assign the variable $qry to fetch the array of each row, and print the password for each name (that gets returned) onto the screen.
Hope this helps.
Bookmarks