angst
07-08-2005, 03:30 PM
Hello,
i'm trying to pass a variable into my select WHERE statement, but keep getting an error, i'm missing some syntax or something,
error:
Unknown column '$view' in 'where clause'
code:
('SELECT * FROM picdata where PicSection= $view LIMIT 12 ')
what am i doing wrong here?
thanks for your time!
-Ken
i'm trying to pass a variable into my select WHERE statement, but keep getting an error, i'm missing some syntax or something,
error:
Unknown column '$view' in 'where clause'
code:
('SELECT * FROM picdata where PicSection= $view LIMIT 12 ')
what am i doing wrong here?
thanks for your time!
-Ken