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.

22nd Nov 2019, 11:39 AM
7n4n03n
7n4n03n - avatar
1 Odpowiedź
0
// Basic pHp query to select items $items = "php" ; $query = "SELECT * FROM db_table where name like '$items%';
3rd Dec 2019, 7:59 PM
Sudarshan Rai
Sudarshan Rai - avatar