i have created my own script gb but theres a problem in sending to next page
wot i mean is if i click nextpage, it dont sends to 2nd page so it returns to the first page
how can i fixed it?LOL
wot i mean is if i click nextpage, it dont sends to 2nd page so it returns to the first page
Code:
<?php header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?> <wml> <?php $nick = $_GET["nick"]; $device = $_GET["device"]; $msg = $_GET["msg"]; $email = $_GET["email"]; include("core.php"); include("config.php"); echo "<card id=\"irc\" title=\"$stitle\">"; echo "<p align=\"center\">"; echo "<img src=\"gb.gif\" alt=\"\"/><br/>"; echo "<b>Please Report all Errors here!</b>"; echo "<br/>"; echo "</p>"; echo "<p>"; echo "<small>"; echo "<a href=\"write.php\">[Write Text]</a><br/>"; echo "---<br/>"; if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM keanpogi")); $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT id, nick, msg, email, device FROM keanpogi ORDER BY id DESC LIMIT $limit_start, $items_per_page"; $cou = $limit_start; $items = mysql_query($sql); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $cou++; /// echo "$cou."; $msg2 = parsepm($msg); echo "Nick: ".htmlspecialchars($item[1])." <br/>"; echo "Email: ".htmlspecialchars($item[3])." <br/>"; echo "Device: ".htmlspecialchars($item[4])." <br/>"; echo "Message: ".htmlspecialchars($item[2])." <br/>"; echo "<img src=\"line.gif\" alt=\"*\"/><br/>"; } if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=results&page=$ppage\">«Prev</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=results&page=$npage\">Next»</a>"; } echo "<br/>Page $page|$num_pages<br/>"; } echo "</small>"; echo "</p>"; echo "<p align=\"center\">"; echo "<small>"; echo "Powered by: <a href=\"index.php\">VaMpirEfreakz</a><br/>"; echo "</small>"; echo "</p>"; echo "</card>"; ?> </wml>
how can i fixed it?LOL
Comment