joshprogrammer
01-04-2009, 11:26 PM
Im trying to figure out how to fix an error im getting with 1 of my php scripts. Its for my RPG game i made. But this has me stumped as i tried alot of ways to fix this error but dosnt want to fix.. heres the code:
<? $title="Attack/Defense Shop"; include("header.php");
$type = strtolower($type);
$shop = shop;
print "
<center>
<br><br>";
$stat = mysql_fetch_array(mysql_query("select * from users where id=".$_GET['uid'].""));
if ($_GET['buy']) {
if (is_numeric($_REQUEST["amount"]) == false) {
print "You must enter a numeric value.";
include("footer.php");
exit;
}
And heres the error im getting:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/pimpin4l/public_html/shop.php on line 8
Any help would be much appreciated. Thanks
<? $title="Attack/Defense Shop"; include("header.php");
$type = strtolower($type);
$shop = shop;
print "
<center>
<br><br>";
$stat = mysql_fetch_array(mysql_query("select * from users where id=".$_GET['uid'].""));
if ($_GET['buy']) {
if (is_numeric($_REQUEST["amount"]) == false) {
print "You must enter a numeric value.";
include("footer.php");
exit;
}
And heres the error im getting:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/pimpin4l/public_html/shop.php on line 8
Any help would be much appreciated. Thanks
