• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Really simple error, I just can't see it

Status
Not open for further replies.
Joined
Apr 30, 2007
Messages
2,339
Reaction score
1,547
The code that's wrong is :

PHP:
dbquery("INSERT INTO cms_alerts (alert,author) VALUES ('"' .clean($_POST['hatext']). '", "'.USER_NAME.'"')");

And the error is :

Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\manage\pages\ha.php on line 21


Can you please help me? It's been pissing me off for ages, and i'm too tired to think properly.
 
Status
Not open for further replies.
Back
Top