Latest Shouts In The Shoutbox -- View The Shoutbox · Rules
Jcink -- mmm.
Dan -- ehh not that great
card123 -- g2g ttyal =]
card123 -- Check out my latest mod, its amazing!! its in the addon section
card123 -- i dont have a problem with members logging in, i have a problem getting them to post lol
Skullmonkey -- im lucky if someone even logs in on mine tongue.gif
Corey.B -- I had a really active board that got up to about 40 active members a day. Then I kinda messed it up lol

[ Smilies | BBCodes ]

  Reply to this topic Start new topic Start Poll

> Page navigator bug
EGYCODE
 Posted: September 30, 2009 04:59 pm

Newbie

Group: Member

Posts: 4

Credits: 19

Joined: September 16, 2009

Age: 25
Gender: Male
Location: N/A
Status: Offline




Hello,

I found this bug when I call a non existing page,limit or show variables which will cause MySQL error and php error like this,

Arcade.php?cat=&limit=666666666&show=666666666&page=6666666&arcade=6666666

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /**********/Arcade.php

Error occurs here,

CODE
while($g=mysql_fetch_array($catquer)){


I think this is a bug as it showing directory and MySQL error.

Any help will be appreciated.

This post has been edited by EGYCODE on September 30, 2009 05:04 pm
New Posts
^
Jcink
 Posted: September 30, 2009 06:54 pm

The Final Boss

Group: Admin

Posts: 16248

Credits: 9600

Joined: June 26, 2006

Age: 20
Gender: Male
Location: New Jersey, USA
Status: Online




I see no such error on my default copy, 3.0.22...

Beyond that, is this a serious issue? A mysql error from something like this is not a big deal at all. You could go ahead and turn off error reporting or muffle just that line by changing it to this:

CODE
while($g=@mysql_fetch_array($catquer)){


--------------------
http://jcink.com
[ JFB | phpQuickArcade | Air-Proxy.com | ircd.jcink.com #jcink.com ]
admin@jcink.com
New Posts
^
EGYCODE
 Posted: October 01, 2009 06:36 am

Newbie

Group: Member

Posts: 4

Credits: 19

Joined: September 16, 2009

Age: 25
Gender: Male
Location: N/A
Status: Offline




QUOTE (Jcink @ September 30, 2009 06:54 pm)
I see no such error on my default copy, 3.0.22...

Beyond that, is this a serious issue? A mysql error from something like this is not a big deal at all. You could go ahead and turn off error reporting or muffle just that line by changing it to this:

CODE
while($g=@mysql_fetch_array($catquer)){


Thanks Jcink, really you are a a great man bro smile.gif

I didn't know that @ will turn off this error.

Could you please suggest a good place to learn about PHP and MySQL sad.gif
Thanks

This post has been edited by EGYCODE on October 01, 2009 06:38 am
New Posts
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

[+] Reply to this topic Start new topic Start Poll

 


 



[ Script Execution time: 0.0272 ]   [ 22 queries used ]   [ GZIP Disabled ]   [ Server Load: 1.14 ]