PHP MySQL Query Help?

Shane

New member
How do I query my table for 2 feilds. Like it searches to see if the user inputted variable is in feild title or feild description, and if its in either one of those, show it in a list
 
In your HTML form, give names to the fields you want to "GET".
<form action="myPHP.php" method="get">
<input name="user" type="text">
<input name="pass type="text">
<input type="submit">
</form>

In your PHP assign those values to a variable:
$username = $_GET['user'];
$password = $_GET['pass'];

Then you can show it like this:
echo $username;
echo $password;
 
Back
Top