include"include/header.php"; ?> include"menu.php"; ?>
include "include/connectdb.php";
$sql = "SELECT * FROM tb_picture";
$ex = mysql_query($sql) or die ("Error Query [".$sql."]");
$Num_Rows = mysql_num_rows($ex);
$Per_Page = 9; // Per Page
$Page = $_GET["Page"];
if(!$_GET["Page"])
{
$Page=1;
}
$Prev_Page = $Page-1;
$Next_Page = $Page+1;
$Page_Start = (($Per_Page*$Page)-$Per_Page);
if($Num_Rows<=$Per_Page)
{
$Num_Pages =1;
}
else if(($Num_Rows % $Per_Page)==0)
{
$Num_Pages =($Num_Rows/$Per_Page) ;
}
else
{
$Num_Pages =($Num_Rows/$Per_Page)+1;
$Num_Pages = (int)$Num_Pages;
}
$sql .=" order by pic_id DESC LIMIT $Page_Start , $Per_Page";
$ex = mysql_query($sql, $conn);
echo"
( ! ) Warning: Trying to access array offset on value of type null in D:\wamp64\www\lpb_web\technical\index.php on line 91 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0248 | 357400 | {main}( ) | ...\index.php:0 |
">( ! ) Warning: Undefined variable $objResult in D:\wamp64\www\lpb_web\technical\index.php on line 91 |