computermax2328 Posted April 25, 2013 Share Posted April 25, 2013 You added a second mysql_query in there. Do this... $sqlinsert = "INSERT INTO reviews (`SHOWTITLE`, `SHOWREVIEW`) VALUES('$showtitle', '$showreview')"; $query = mysql_query($sqlinsert); if (!query) { echo "error inserting new record" . mysql_error(); } Link to comment https://forums.phpfreaks.com/topic/277312-php-coding-help-query-and-if-statements-playing-up/page/2/#findComment-1426652 Share on other sites More sharing options...
joshstevens19 Posted April 25, 2013 Author Share Posted April 25, 2013 On 4/25/2013 at 9:22 PM, computermax2328 said: You added a second mysql_query in there. Do this... $sqlinsert = "INSERT INTO reviews (`SHOWTITLE`, `SHOWREVIEW`) VALUES('$showtitle', '$showreview')"; $query = mysql_query($sqlinsert); if (!query) { echo "error inserting new record" . mysql_error(); } BOOM fixed thanks man!!!! you superstar Link to comment https://forums.phpfreaks.com/topic/277312-php-coding-help-query-and-if-statements-playing-up/page/2/#findComment-1426654 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.