whiteboikyle Posted April 14, 2008 Share Posted April 14, 2008 $query = "SELECT * FROM edit WHERE subject = Member ORDER BY ID desc limit 1"; Unknown column 'Member' in 'where clause' When i submit the subject is Members.. and its labled subject So what am i doing wrong Link to comment https://forums.phpfreaks.com/topic/100990-solved-sql-syntax/ Share on other sites More sharing options...
darkfreaks Posted April 14, 2008 Share Posted April 14, 2008 $query = "SELECT * FROM edit WHERE subject = 'Member' ORDER BY ID desc limit 1"; make sure that field exists in your DB. also make sure it is spelled right Link to comment https://forums.phpfreaks.com/topic/100990-solved-sql-syntax/#findComment-516455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.