Jump to content

Help - Errors - mysql_fetch_array()


bonked

Recommended Posts

I created a whole system for a simple mock "bank" system. I keep getting errors about the connection. Take a look for yourself at http://lifesmessy.com/admin

 

One of the major errors is:

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/lifesmes/public_html/admin/index.php on line 267

 

does anyone know what this means?

be sure to check the link i provided, as it may contain some clues for anyone that can help me.

 

 

 

Thanks for everyones help,

~Bonked~

Link to comment
https://forums.phpfreaks.com/topic/56490-help-errors-mysql_fetch_array/
Share on other sites

#

while($r=mysql_fetch_array($qry))      <------ Line 267

#

{

#

        $totalbalance+=$r['balance'];

#

        if($r['ip']=='')

#

        {

#

                $ip='Not logged.';

#

                $notlogged++;

#

        }

#

        else

#

        {

#

                $ip='<a href="http://www.dnsstuff.com/tools/ipall.ch?ip='.$r['ip'].'" target="_blank">'.$r['ip'].'</a>';

#

        }

#

        $tmpqry=mysql_query('SELECT id FROM jobs WHERE userid='.$r['id'].' AND state=0 LIMIT 1');

#

        if(mysql_num_rows($tmpqry))

#

        {

#

                $class='job';

#

        }

 

 

If you want the whole document, which might actually be easier because the lines are labeled, go to http://pastebin.gaiatools.com/?show=101 - scroll down until you come to line 267.

while($r=mysql_fetch_array($qry))      <------ Line 267

 

$qry===this is the initialization of the query  see it while($r=mysql_fetch_array(====$qry=====))

 

the error is that $qry

theres something in there

like

$qry='SELECT * FROM ======';

 

ASTIG!!!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.