Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<form action="search.php" method="post">
<input type="text" name="search" class="searchs" value=" Търси..." onfocus="this.value='';" onblur="if(this.value=='')this.value=' Търси...';" />
<input class="searches" type="submit" value="" name="submit" />
</form>
<?
include "config.php";
$search = $_REQUEST['search'];
$query=mysql_query("SELECT * FROM `produkti` WHERE `title` LIKE '%$search%'") or die(mysql_error());
$num=mysql_num_rows($query);
if ($num < 1)
{
echo "Няма намерени резултати !";
}
else
{
echo "Намерени резултати : <b>$num</b><br />";
while($row=mysql_fetch_array($query))
{
$title=$row['title'];
$id=$row['id'];
echo "<a href='product.php?id=$id'>$title</a><br />";
}
}
?>