PDA

View Full Version : What's wrong....


Kyomu
02 Apr 2002, 04:28
What's wrong with the following SQL query?


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I get the error:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



My brains are fired... help... =(

Chen
02 Apr 2002, 05:38
You are JOINing the forum table to itself without giving them an alias. That's the error, but in your code LEFT JOIN forum should be LEFT JOIN forumpermission.

Kyomu
02 Apr 2002, 16:16
Originally posted by FireFly
You are JOINing the forum table to itself without giving them an alias. That's the error, but in your code LEFT JOIN forum should be LEFT JOIN forumpermission.

Ah, thanks, it works now.
Now I'm getting a parse error here....



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thanks for the help again.

Mark Hensler
02 Apr 2002, 20:08
$threads=$DB_site->

Kyomu
02 Apr 2002, 20:42
Originally posted by Mark Hensler
$threads=$DB_site->

Ahh, no wonder I couldn't pick it up... too used to C++...

Thanks.