how can i code this???can u help me?
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php
Started on the old forum in November 2008 · view the original in the archive · old links redirect here
how can i code this???can u help me?
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php
QUOTE (keanvn @ Nov 1 2008, 07:24 AM) <{POST_SNAPBACK}>
how can i code this???can u help me?
What Script are you using?
foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
its a methos script sir and lavalair
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php
something like dis not sure havent try
else if($action=="online")
{
echo "<head>\n";
echo "<title>SpiderWap</title>\n";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$theme[0]\" />";
echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo "</head>";
echo "<body>";
addonline(getuid_sid($sid),"Online List","");
echo "<div class=\"ahblock2\">";
getAd();
echo "</div>";
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$num_items = getnumonline(); //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if($page>$num_pages)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
$sql = "SELECT
a.name, b.place, b.userid, sex, perm FROM ibwf_users a
INNER JOIN ibwf_online b ON a.id = b.userid
GROUP BY 1,2
LIMIT $limit_start, $items_per_page
";
echo "
[size="1"]";
$mols = mysql_fetch_array(mysql_query("SELECT name, value FROM ibwf_settings WHERE id='2'"));
print "Most online: [b]$mols[1][/b]
";
$mols = mysql_fetch_array(mysql_query("SELECT ppl, dtm FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
print "Most online today only: [b]$mols[0][/b]
";
$items = mysql_query($sql);
echo mysql_error();
while ($item = mysql_fetch_array($items))
{
$item[3] = getavatar($who);
if ($item[3]=="")
{
$icon = "<img src=\"max.php?filename=images/nopic.jpg\" alt=\"avatar\"/>";
}else{
$icon = "<img src=\"$item[3]\" alt=\"avatar\"/>";
}
if ($item[4]=="1")
{
$lnk = "<a class=\"mod\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>";
}
elseif ($item[4]=="2")
{
$lnk = "<a class=\"admin\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>";
}
elseif ($item[4]=="3")
{
$lnk = "<a class=\"owner\" href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>";
}
else
{
$lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$item[0]</a>";
}
echo "$icon $lnk - $item[1]
";
}
echo "[/size]</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"index.php?action=online&page=$ppage&sid=$sid\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"index.php?action=online&page=$npage&sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages
";
if($num_pages>2)
{
echo getjumper($action, $sid,"index");
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "<div class=\"ahblock2\">";
getAd();
echo "</div>";
echo "</body>";
echo "</html>";
exit();
}
lol someones been on my site 😛
above code wont work
////////////error below: $item[3] = getavatar($who);
//////////more like this: $ava = getavatar($item[2]);
wow tnx.....but it ddnt work on my site.....its methos od by spider.....what is the changes will i make from it?pls
also mr inca it dont work...
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php
ok tnx my problem is fixed now....
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php