hi there good coders i have 3 errors on my site in the coding i am recoding my self and garry have looked at this and can not find the error
this is one error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/*******/public_html/bank/diposit.php on line 44
and this is the other errors
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/******/public_html/bank/wdraw.php on line 43
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/bank/wdraw.php on line 45
please help coders i am still learning and think i am doing well i am using db
bank int 11 no 0
i am trying to sort out a bank for wapdesire v_2 script and may i say thanks to any good coder that helps me out
this is one error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/*******/public_html/bank/diposit.php on line 44
Code:
$main.="<b>Welcome to the bank ".getnick_uid($who)."</b><br/><br/>"; $gps = mysql_fetch_array(mysql_query("SELECT points FROM profiles WHERE id='".getnick_sid($who)."'")); $main.="You have $points Points <br/>";
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/******/public_html/bank/wdraw.php on line 43
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/bank/wdraw.php on line 45
Code:
$gps = mysql_fetch_array(mysql_query("SELECT points FROM profiles WHERE id='".getuid_sid($sid)."'")); $main.="<You have $gps[0] Credits in your hand<br/>"; $gpb = mysql_fetch_array(mysql_query("SELECT bank FROM profiles WHERE id='".getuid_sid($sid)."'")); $main.="<and $gpb[0] Plusses in the bank<br/><br/>\n"; $main.="<form action=\"wdraw.php?sid=$sid\" method=\"post\">\n";
bank int 11 no 0
i am trying to sort out a bank for wapdesire v_2 script and may i say thanks to any good coder that helps me out
Comment