Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

php script "$GET"

$
0
0
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"

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;
        } 


Attached Files
File Type: php paging1.php (3.1 KB)

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images