error: mysql_fetch_assoc()

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
binOr

error: mysql_fetch_assoc()

Postby binOr » 14 Sep 2005, 17:34

i don't get it working. :cry:

does anybody know about these errors?

mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /www/htdocs/v119941/feeds/db.php on line 65
mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /www/htdocs/v119941/feeds/db.php on line 47

regards,
binOr

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Postby fox » 14 Sep 2005, 21:33

I was too lazy to display mysql errors yet, but you could enable tracing option in php.ini (mysql.tracemode On) and see what the problem is.

Most probably it is wrong password/host or missing database.

db

Options

Postby db » 21 Sep 2005, 07:46

Check your mysql version. Note the readme says you need 4.1+. Versions 4.0 and earlier don't support some of the more complex queries being used here.

fox, you could add something like the following code to smarten db.php.

return mysql_query($query, $link) or die(mysql_query());

Alternatively, you could use something like ADOdb or PEAR db.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Postby fox » 21 Sep 2005, 13:49

Good idea, implemented.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 10 guests