hello can someone put a refrsh code in this script for me..it is a file from toddy gb service
<?php
//script edited by andre brown
include 'config.php';
////////////////HEADER INFO////////////////
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: text/vnd.wap.wml;");
echo '<?xml version="1.0" encoding="utf-8"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml>
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
////////////////MAIN PAGE////////////////
$sqlthing = mysql_query("SELECT * FROM settings WHERE site='$site'");
$title=(mysql_result($sqlthing,0,"name"));
$logo=(mysqlesult($sqlthing,0,"logo"));
$fpm=(mysql_result($$sqlthing,0,"fp"));
echo "<card id=\"JP\" title=\"$title Gbook\"><p align=\"center\">";
if($logo==""){
echo "[b]$title Guestbook[/b]
";}
else
{
echo "<img src=\"http://$logo\" alt=\"logo\"/>
";
}
echo "$fpm</p>
[size="1"]";
if(!isset($GET['page'])){
$page = 1;
} else {
$page = $_GET['page'];
}
echo "<a href=\"add.php?site=$site\">Add A Comment</a>
";
echo "<a href=\"images/index.php?site=$site\">Smilies List</a>
";
echo "-----
";
$max_results = 10;
$from = (($page * $max_results) - $max_results);
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM bkmsgs WHERE site='$site'"),0);
$total_pages = ceil($total_results / $max_results);
$sql = mysql_query("SELECT * FROM bkmsgs WHERE site='$site' ORDER BY id desc LIMIT $from, $max_results");
while($row = mysql_fetch_array($ql)){
$name = $row['ame'];
$msg = $row['msg'];
$key = $row['id'];
include 'str_replace.php';
include 'smile.php';
echo "<img src=\"star.gif\" alt=\"*\"/><a href=\"poster.php?site=$site&key=$key\">$name</a> - $msg
------
";
}
if($page < $total_pages){
$next = ($page + 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next&site=$site\">Next Page</a>
";
}
if($page > 1){
$prev = ($pag
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev&site=$site\">Prev Page</a>
";
}
$i = 1; $i <= $total_pages; $i++;
$sqlthing = mysql_quer("SELECT * FROM settings WHERE site='$site'");
$link=(mysql_result($sqlthing,0,"link"));
$ln=(mysql_result($sqlthing,0,"linkname"));
echo "
<a href=\"htt://$link\">Back To $ln</a>";
$result=mysql_query("select * from bkmsgs where site='$site'");
$post = mysql_num_rows($result);
echo "
Comments:post
";
echo "------
<a href=\"http://wapforumx.com/gb/index.php\">Get Your Gbook Here!</a>
Script edited by andre3";
echo "[/size]</p></card></wml>";
?>
wapZan Mobile site builder - Yours is here