DeepakJ Posted July 27, 2007 Share Posted July 27, 2007 $query = "INSERT INTO invoiceid(customerid, invoicenum, numoflicenses) VALUES ('$customerid', '$customerinvoice, '$numoflicenses')"; The error message says this is structured wrong. Can someone help me? Link to comment https://forums.phpfreaks.com/topic/62084-solved-whats-wrong-with-this-syntax/ Share on other sites More sharing options...
GingerRobot Posted July 27, 2007 Share Posted July 27, 2007 Well, do you think you could post the actual error message? Link to comment https://forums.phpfreaks.com/topic/62084-solved-whats-wrong-with-this-syntax/#findComment-309109 Share on other sites More sharing options...
roopurt18 Posted July 27, 2007 Share Posted July 27, 2007 I'll take a guess that it's because you didn't enclose $customerinvoice in single quotes. Link to comment https://forums.phpfreaks.com/topic/62084-solved-whats-wrong-with-this-syntax/#findComment-309131 Share on other sites More sharing options...
DeepakJ Posted July 27, 2007 Author Share Posted July 27, 2007 Haha you are right thanks Link to comment https://forums.phpfreaks.com/topic/62084-solved-whats-wrong-with-this-syntax/#findComment-309143 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.