DionDev
05-22-2008, 08:38 PM
im having some trouble with this
ive got polls to show on a non-vb page, and the results if the person has voted
now i just want polls from 1 specific forum (forum 4) to display on the page
this is my select statement code:
$sql = 'SELECT poll.*, thread.* FROM poll AS poll, thread AS thread
WHERE thread.forumid = 4
ORDER BY dateline DESC
LIMIT 1';
which is giving me an error
im not very good a doing mysql joins/left joins right now....little help?
ive got polls to show on a non-vb page, and the results if the person has voted
now i just want polls from 1 specific forum (forum 4) to display on the page
this is my select statement code:
$sql = 'SELECT poll.*, thread.* FROM poll AS poll, thread AS thread
WHERE thread.forumid = 4
ORDER BY dateline DESC
LIMIT 1';
which is giving me an error
im not very good a doing mysql joins/left joins right now....little help?