+ 24
How to make search box?
I am trying to make a website but I don't know how to add search box in it? please help me.
3 Réponses
+ 22
Thanks!😊
+ 2
If you used php then follow below steps:
*HTML*
<form action="search.php" method="GET">
<input type="text" name="query" />
<input type="submit" value="Search" />
</form>
*search.php*
<?php
$query = $_GET['query'];
$execute = mysql_query("SELECT * FROM table_name WHERE 'search_parameter' LIKE '%".$query."%'");
$results = mysql_fetch_assoc($execute);
?>
+ 2
Try using HTML.