0
Plz help me about PHP
I want to make search with one input text and some checkbox, use php and mysql. Plz give me a sample to make a query mysql. My html code <form method='POST' action='search.php'> <input type="text" name="key"> <br /> <input type="checkbox" name="box[]" value="firstname"> fname <input type="checkbox" name="box[]" value="lastname"> lname <input type="checkbox" name="box[]" value="name"> name </form> Help me php tks.
1 Odpowiedź
0
// Basic pHp query to select items
$items = "php" ;
$query = "SELECT * FROM db_table where name like '$items%';