PDA

View Full Version : Script problem


0810
11-02-2002, 01:07 AM
hi how are you doing? I am trying to run this scirpt. could you tell me what is wrong this script.

my php is 4.22

Thanks



<html>
<head>
<title></title>
</head>
<body>
<?php

if (isset($_GET["page"]))
{
$page = $_GET["page"];
}
else {
$page = 1;
}

if($page>10)
{
$page = 10;

}
print($page."Page<br><br>\n");
for($i=1; $i<=10; $i++)
{
print("No.". (($page - 1) * 10 + $i)."<br>\n");

}
print("<br>\n");

if($page != 1)
{
print("<a href=\"$PHP_SELF?page=" . ($page -1) . "\">Privious Page</a>");


}
if($page != 10){

print("<a href=\"$PHP_SELF?page=" . ($page + 1) . "\">Next Page</a>");

}

echo ("<br>\n");

?>

</body>
</html>

Ökii
11-02-2002, 03:16 PM
Wooppee, debuggin' without even a parse error return to guide us.

Nightfire
11-02-2002, 03:23 PM
Can you use a more descriptive title too on your posts? Mostly all posts in here are script problems. Didn't mordred help you out on this already?

<edit>Knew I'd seen mordred reply http://www.codingforums.com/showthread.php?s=&threadid=9023</edit>