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