Web Hosting Talk







View Full Version : missing a simple step


ti_nhatrang
08-04-2007, 01:31 AM
Hi guys,

This is what I have:


$et_db = mysql_query("SELECT title,firstpostid FROM vbnews.thread WHERE forumid IN (2,3,4,5) AND attach !=0 ORDER BY dateline DESC limit 1")


I want to bring out (2,3,4,5) and put it in a value, so I tried:


$value = "(2,3,4,5)"


That didn't work for some reason...

Please shine some light on me... Thank you in advance..

Steve_Arm
08-04-2007, 01:32 AM
AND attach <> 0

ti_nhatrang
08-04-2007, 01:36 AM
that attachment is fine... just the value section... :(

Steve_Arm
08-04-2007, 01:40 AM
I'm confused. The query works?

ti_nhatrang
08-04-2007, 01:40 AM
ahh, Steve, you brought up a very important aspect that I did not catch for the attachment! good job!

ti_nhatrang
08-04-2007, 03:06 AM
it works great now! thanks for your help!