Help in PHP and MYSQL?

jandel

New member
TABLE in Database

id | user | pass | code
1 | test1 | test1 | apple
2 | test2 | test2 | boy
3 | test3 | test3 | cat
4 | test4 | test4 | dog


this is my html code
<html>
<body>
<form name="form" action="submit.php" method="post">
CODE:
<input type="text" name="code" /></br>
<input type="submit" value="Submit" />
</form>
</body>
</html>

i just want to get the row information in database
example
I Put cat on textbox then i click submit then the results will be:

Username: test3
Password: test3

and it will display in html

another example

I Put dog then click the submit button then it will display the results

Username: test4
Password: test4


I just need a code for this
 
Back
Top