bev Posted October 21, 2008 Share Posted October 21, 2008 Error I receive is Parse error: syntax error, unexpected T_VARIABLE in /home/crazy/public_html/registration.php on line 19 LINE 18$variable = $_POST['variable'] LINE 19$sql="insert into orders(sitemembership,clientmembership,sellitemsmembership,auctionitemsmembership,shoppingcrt3months,shoppingcart6months,shoppingcrt1year) LINE20value('[sitemembership]','$_POST[clientmembership]','$_POST[sellitemsmembership]','$_POST[auctionitemsmembership]','$_POST[shoppingcrt3months]', LINE 21'$_POST[shoppingcrt6months]','$_POST[shoppingcrt1year]','$_POST[companyname]')','"; LINE 22$result= mysql_query($sql); I just do not see the error I guess Link to comment https://forums.phpfreaks.com/topic/129489-solved-why-does-this-code-keep-giving-me-errors/ Share on other sites More sharing options...
philipolson Posted October 21, 2008 Share Posted October 21, 2008 Parse errors are ALWAYS syntax errors, and in this case you are missing a semicolon ( to end line 18. Link to comment https://forums.phpfreaks.com/topic/129489-solved-why-does-this-code-keep-giving-me-errors/#findComment-671322 Share on other sites More sharing options...
bev Posted October 21, 2008 Author Share Posted October 21, 2008 Thank You.. That worked. Link to comment https://forums.phpfreaks.com/topic/129489-solved-why-does-this-code-keep-giving-me-errors/#findComment-671328 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.