Hi,
i have php script to show the page per row 10, the script working fine in windows. but when i try use in linux machine getting error.
"Notice: Undefined variable: halaman in /opt/lampp/htdocs/logistik/operator/paging/paging1.php on line 52"
i have php script to show the page per row 10, the script working fine in windows. but when i try use in linux machine getting error.
"Notice: Undefined variable: halaman in /opt/lampp/htdocs/logistik/operator/paging/paging1.php on line 52"
PHP Code:
//tentukan batas, cek halaman dan posisi data
$batas=10;
$halaman = $_GET['halaman'];
if (empty($halaman))
{
$posisi=0;
$halaman=1;
}
else
{
$posisi=($halaman-1) * $batas;
}