Jump to content

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!!!!!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.