What im missing, LIMIT & Next page are not working. it showing nothing.
<?php
include ('ini.php');
$query = $_GET['query'];
$min_length = 3;
$max_length = 15;
if(strlen($query) >= $min_length)
{
$query = htmlspecialchars($query);
$query = mysql_real_escape_string($query);
echo "<table border='0' width='' align='left' cellpadding='1' cellspacing='1'>";
echo "<tr><h3>You have searched for $query... Please find the details of $query...</h3></tr>";
echo "<tr align='center' bgcolor='#03acfa' > <td height='35px' width='125px'><b>Business Name</b></td> <td><b>Business Type</b></td> <td><b>Services Offering</b></td> <td><b>City</b></td></tr>";
$rowsPerPage = 10; //number of results you want to display
$num = 1; //set the offset to start w/the num. of results (good for paging)
$offset = ($num - 1) * $rowsPerPage; // to offset the limit count
$result = mysql_query("SELECT * FROM members WHERE (`NAME` LIKE '%".$query."%') OR (`SERVICES` LIKE '%".$query."%')") or die(mysql_error()); LIMIT, $rowsPerPage, $offset";
if(mysql_num_rows($result) > 0)
{
while($results = mysql_fetch_array($result))
{
echo "<tr align='center' bgcolor='#93dafb'><td height='25px'><a href='testpage.php?ID=".$results['ID']."'>".$results['Name']."</td> <td>".$results['Date']."</td> <td>".$results['Mode']."</td> <td>".$results['CITY']."</td></tr>";
}
}
else{
echo "<tr align='center' bgcolor='#fdee03'><td colspan='2' height='25px'>Sorry..not found in system you may Add it now Click Here</td><tr>";
echo "</table>";
}
}
else{
echo "<tr align='center' bgcolor='#fdee03' font size='10'><td colspan='2' height='25px'>Your search keyword contains letters only ".$min_length;
}
?>