hyeteck Posted February 17, 2007 Share Posted February 17, 2007 hey guys i am getting an error at following lines of code in my program. $temp = mysql_query("INSERT into sections(sectionName, sectionWorkingName, topSection, rootSection") VALUES('$cat_segment', '$cat_segment', '0', '0')); there error is Parse error: parse error, unexpected T_STRING in /_scripts/allupdater.php on line 90 any idea what im doing wrong? Link to comment https://forums.phpfreaks.com/topic/38921-solved-unexpected-t_string-error/ Share on other sites More sharing options...
Jessica Posted February 17, 2007 Share Posted February 17, 2007 You end the " too early. Link to comment https://forums.phpfreaks.com/topic/38921-solved-unexpected-t_string-error/#findComment-187170 Share on other sites More sharing options...
Psycho Posted February 17, 2007 Share Posted February 17, 2007 You need to move the 2nd douoble quote to the end of the query $temp = mysql_query("INSERT into sections(sectionName, sectionWorkingName, topSection, rootSection) VALUES('$cat_segment', '$cat_segment', '0', '0')"); Link to comment https://forums.phpfreaks.com/topic/38921-solved-unexpected-t_string-error/#findComment-187171 Share on other sites More sharing options...
hyeteck Posted February 17, 2007 Author Share Posted February 17, 2007 thanks Link to comment https://forums.phpfreaks.com/topic/38921-solved-unexpected-t_string-error/#findComment-187173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.