amites Posted January 27, 2008 Share Posted January 27, 2008 hello, I'm running into a small wall, I have a simple query that I had running 30 minutes ago, it stopped working for me and I don't know why mysql_query(" INSERT INTO bil_msg_look (userid, locid, look_date, created, active)" . "\n VALUES ('63', '".$location."', '".$date_insert."', now(), '1' ") or die(mysql_error()); I've verified that $location = 22 $date_insert = 2008-01-26 13:00:00 and it is telling me that the problem is on the 3rd line near the " any ideas? Link to comment https://forums.phpfreaks.com/topic/88026-solved-simple-query-perhaps-time-to-call-it-a-night/ Share on other sites More sharing options...
PHP Monkeh Posted January 27, 2008 Share Posted January 27, 2008 You've missed your closing bracket for your values, there should be a ) after '1', like so: '1')") or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/88026-solved-simple-query-perhaps-time-to-call-it-a-night/#findComment-450378 Share on other sites More sharing options...
amites Posted January 28, 2008 Author Share Posted January 28, 2008 wait... wait... WHACK owe my head, stupid keyboard thanks =) Link to comment https://forums.phpfreaks.com/topic/88026-solved-simple-query-perhaps-time-to-call-it-a-night/#findComment-451649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.