Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - Regarding the various MySQL errors you might encounter. | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 3919/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 07-31-05 11:13 PM Link | Quote
I've seen some people ask about why there's an error at a certain line. Before asking please use the "mysql_error()" function, after the faulty query (the one reported at the top of the page, normaly it concerns "mysql_fetch_array".)

What you do is:
Replace:
$wtf = mysql_fetch_array(somequery);

To:
$wtf = mysql_fetch_array(somequery) or die(mysql_error());


This makes finding errors easier (and sometimes point an obvious thing like: "table board.something doesn't exist".

Hope this is gonna help some of you.

By the way, mysql_error() really is your best friend.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - Regarding the various MySQL errors you might encounter. | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.015 seconds.