?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


?
?Re: undifined index










";
}
else
{
print "









";
}

/////////////////////////////////////////////////////////


}
if ($der < ($num + 1))
{
$der = 0;
}

print "
Author:??(---.tnt1.hot-springs.ar.da.uu.net)
Date:???02-22-04 07:11

if (isset($HTTP_GET_VARS["crpos"]))
{
$next1= $HTTP_GET_VARS["crpos"];
$bs = "SELECT * from cheapgame ORDER BY rankvalue DESC LIMIT 0 , 40 ";
$result = mysql_query($bs) OR die(mysql_error());
}
else

{
$next1='0';
$bs = "SELECT * from cheapgame ORDER BY rankvalue DESC LIMIT 0 , 40 ";
$result = mysql_query($bs) OR die(mysql_error());
}



$num=mysql_num_rows($result);



$lastpage=($next1-40);
if ($lastpage < 0)
{
$lastpage =0;
}

/////////////////////

$der=($next1+40);
if (($der > $num) && ($num < 40))
{
$der=$num;
}





for ($i=$next1; $i<$der; $i++)
{
$gname=mysql_result($result,$i, "gamename");
$ghoes=mysql_result($result,$i, "hoes");
$gthugs=mysql_result($result,$i, "thugs");
$grides=mysql_result($result,$i, "rides");
$gcity=mysql_result($result,$i, "city");
$gr=mysql_result($result,$i, "rankvalue");
$gconline=mysql_result($result,$i, "online");
$grvalue=($ghoes+$gthugs+$grides) * 3;
$ed=$i+1;
$dork= floor(time() - 1800);
$lastac=floor(time()-$gconline);

if ($lastac > 900)
{
$lastac ="Not Active";
}

$query="UPDATE cheapgame set rankvalue='$grvalue' where gamename='$gname'";
$Result = mysql_query($query) or die('unable to select first');
/////////////////////////////////////////////////////////
if ($mygamename==$gname)
{

print "
";

if ($gconline > $dork)
{
echo "";
}
else
{
echo "";
}
echo "
$ed $gname "; echo Formatit($ghoes); echo " "; echo Formatit($gthugs); echo " "; echo Formatit($grides); echo " $gcity $"; echo Formatit($grvalue); echo " $lastac (sec ago)
";

if ($gconline > $dork)
{
echo "";
}
else
{
echo "";
}
echo "
$ed $gname "; echo Formatit($ghoes); echo " "; echo Formatit($gthugs); echo " "; echo Formatit($grides); echo " $gcity $"; echo Formatit($grvalue); echo " $lastac (sec ago)




Main |
Back |
Next
";

?Topics Author? Date
?undifined index??new
foodstyling 02-14-04 13:55?
?Re: undifined index??new
bastien 02-16-04 17:56?
?Re: undifined index??new
foodstyling 02-16-04 22:43?
?Re: undifined index??new
mike... 02-22-04 07:11?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message ?Your Name: ?Your Email: ?Subject:
Email replies to this thread, to the address above. ??wrote: > > if (isset($HTTP_GET_VARS["crpos"])) > { > $next1= $HTTP_GET_VARS["crpos"]; > $bs = "SELECT * from cheapgame ORDER BY rankvalue DESC > LIMIT 0 , 40 "; > $result = mysql_query($bs) OR die(mysql_error()); > } > else > > { > $next1='0'; > $bs = "SELECT * from cheapgame ORDER BY rankvalue DESC LIMIT > 0 , 40 "; > $result = mysql_query($bs) OR die(mysql_error()); > } > > > > $num=mysql_num_rows($result); > > > > $lastpage=($next1-40); > if ($lastpage < 0) > { > $lastpage =0; > } > > ///////////////////// > > $der=($next1+40); > if (($der > $num) && ($num < 40)) > { > $der=$num; > } > > > > > > for ($i=$next1; $i<$der; $i++) > { > $gname=mysql_result($result,$i, "gamename"); > $ghoes=mysql_result($result,$i, "hoes"); > $gthugs=mysql_result($result,$i, "thugs"); > $grides=mysql_result($result,$i, "rides"); > $gcity=mysql_result($result,$i, "city"); > $gr=mysql_result($result,$i, "rankvalue"); > $gconline=mysql_result($result,$i, "online"); > $grvalue=($ghoes+$gthugs+$grides) * 3; > $ed=$i+1; > $dork= floor(time() - 1800); > $lastac=floor(time()-$gconline); > > if ($lastac > 900) > { > $lastac ="Not Active"; > } > > $query="UPDATE cheapgame set rankvalue='$grvalue' where > gamename='$gname'"; > $Result = mysql_query($query) or die('unable to select first'); > ///////////////////////////////////////////////////////// > if ($mygamename==$gname) > { > > print " > "; > > if ($gconline > $dork) > { > echo ""; > } > else > { > echo ""; > } > echo " > $ed > href='userprofile.php?user=$gname'>$gname > "; echo Formatit($ghoes); > echo " > "; echo Formatit($gthugs); > echo " > "; echo Formatit($grides); > echo " > $gcity > $"; echo Formatit($grvalue); > echo " > $lastac (sec ago) > "; > } > else > { > print " > "; > > if ($gconline > $dork) > { > echo ""; > } > else > { > echo ""; > } > echo " > $ed > href='userprofile.php?user=$gname'>$gname > "; echo Formatit($ghoes); > echo " > "; echo Formatit($gthugs); > echo " > "; echo Formatit($grides); > echo " > $gcity > $"; echo Formatit($grvalue); > echo " > $lastac (sec ago) > "; > } > > ///////////////////////////////////////////////////////// > > > } > if ($der < ($num + 1)) > { > $der = 0; > } > > print " bordercolor='navy' cellpadding='2' cellspacing='0'> > > > >
size=4>Main | > Back | > Next
"; ">??

Provided By
Phorum