PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$query1="INSERT INTO 'calevent' (title,description,location,postcode) VALUES('$clean['title']','$clean['description']','$clean['location']','$clean['postcode']')";
is producing this error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\xampp\htdocs\secure\calendar\add.php on line 100
Notice that I changed the single quotes around the table name to backticks. That could have been causing a problem also. And remember to run some error checking on the query itself, using mysql_error() for failures on mysql_query().
Thanks guys. I'd never seen the backstick way before!
I always use error checking on the query in development, but had never had a script fail on the query string itself!