View Single Post
Old 05-14-2008, 07:51 PM   #8 (permalink)
wGEric
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 125
Thanks: 0
wGEric is on a distinguished road
Default

sql Code:
SELECT forums.fid,forums.name,forums.DESC,posts.pid,posts.forumid
FROM forums,posts
WHERE posts.forumid = forums.fid

When you put single quotes around it it was looking for where the column's value is that string and not where the two columns equal.

Also you should avoid using keywords for column names (change desc to something else).
__________________
Eric
BlogphpBB
wGEric is offline  
Reply With Quote
The Following User Says Thank You to wGEric For This Useful Post:
Orc (05-14-2008)