Hi,Pagination Problem : It shows the pages i.e 1,2,3 as number of records, but further records are not shown when clicked on page 2 further 3 and soo on..
Database Connectivity:
$query = "SELECT * FROM photos ORDER BY id DESC limit 1,2";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
$image_stat1= $row["image_path"];
?>
2nd Php tag which shows the pages
$sql = "SELECT COUNT(id) FROM photos";
$rs_result = mysql_query($sql);
$row = mysql_fetch_row($rs_result);
$total_records = $row[0];
$total_pages = ceil($total_records / 2);
for ($i=1; $i<=$total_pages; $i++) {
echo "<a href='gallery_retrieve.php?idd=".$i."'>".$i."</a> ";
};
?>
</table>
</form>