You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #41' at line 1
on this forum - I think its bad style. Make your intention mor obvious by stating the columns you need (this way you will also spot superflous columns, and you might reduce the memory foorprint of your scripts).
Just my thoughts on this.
Happy Coding!
__________________
Duesi
"One of the great skills in using any language is knowing what not to use, what not to say" (Ron Jeffries)
And another tip:
Quite often, sql queries get built up dynamically. Therfore, I always log sql queries before executing them, its much easier to read them in a logfile than in the PHP Code
(often they are surrounded by a bunch of quotes - very hard to read!)
Cheers!
__________________
Duesi
"One of the great skills in using any language is knowing what not to use, what not to say" (Ron Jeffries)