cooldude832 Posted April 2, 2008 Share Posted April 2, 2008 Giving me an error saying the ; at the end isn't suppose to be there and i'm clueless on why been through it 10 times now no clue parse error: syntax error, unexpected ';' in register.php on line 268 <?php $q = "Insert into `".USERS_TABLE."` (Email, Password, Name, M_Status, Address, City, State, Zip, Country, Occupation, Education, Ethnicity, Birthday, Religion, Gender VALUES( '".$form_data['email']."', '".md5($form_data['password']."', '".$form_data['name']."', '".$form_data['m_stats']."', '".$form_data['address']."', '".$form_data['city']."', '".$form_data['state']."', '".$form_data['zip']."', 'United States of America', '".$form_data['job']."', '".$form_data['education']."', '".$form_data['ethnicity']."', '".$b_day."', '".$form_data['religion']."', '".$form_data['gender']."')"; ?> It even highlights the syntax perfectly here Link to comment https://forums.phpfreaks.com/topic/99111-solved-i-cant-see-it/ Share on other sites More sharing options...
cooldude832 Posted April 2, 2008 Author Share Posted April 2, 2008 found it didn't close my md5() so much for pretty print Link to comment https://forums.phpfreaks.com/topic/99111-solved-i-cant-see-it/#findComment-507110 Share on other sites More sharing options...
PFMaBiSmAd Posted April 2, 2008 Share Posted April 2, 2008 Unless it got cut off in the posting, there is a missing ) after the list of column names - INSERT INTO your_table () VALUES () Link to comment https://forums.phpfreaks.com/topic/99111-solved-i-cant-see-it/#findComment-507113 Share on other sites More sharing options...
cooldude832 Posted April 2, 2008 Author Share Posted April 2, 2008 Unless it got cut off in the posting, there is a missing ) after the list of column names - INSERT INTO your_table () VALUES () Yeha it was cut off Link to comment https://forums.phpfreaks.com/topic/99111-solved-i-cant-see-it/#findComment-507126 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.