Jump to content

Notice: Undefined variable: page in


rabesh

Recommended Posts

code is

<?php 	
$limit=12;
if(isset( $_GET['page']))
	$page=$_GET['page'];
	if($page<=0) $page = 1;

	else {$start=0;}
$sql=mysql_query("select * from tbl_gallery where status=1 And category_name='0'");
$count=mysql_num_rows($sql);
$totalcount=ceil($count/$limit);$start=($page-1)*$limit;
$s=mysql_query("select * from tbl_gallery where status=1 And category_name='0' limit $start, $limit");
while($result=mysql_fetch_array($s)){
	$start++;

?>

 

PLZ find the mistake

Link to comment
https://forums.phpfreaks.com/topic/238066-notice-undefined-variable-page-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.