hello,
i have made the fallowing code that searches through my mysql database in oder to find something looks like the query that the user is looking for.
i was just wondering what should i do in order to make a second page if the results are more than 25.
in other words, if there are more than 25 row i want to have a second page and if its more than 50 i want a third page and so on.
[php]$searchquery=$_POST[‘searchquery’];
$sql = “SELECT * FROM users WHERE title ILKE '%” . $letter . “%’”;
$result = mysql_query($sql);
$numrows=mysql_num_rows($result);
echo “
” .$numrows . " results found for " . $letter . “
”;if ($numrows != 0)
{
?>
image | Description | Book Price | Asked Price |