I have:
//insert the values
$usersonline=MYSQL_QUERY("INSERT INTO useronline (timestamp,ip,username,position1)".
"VALUES ('$timestamp', '$REMOTE_ADDR', '$cookie[one]', '$title1')");
print mysql_error();
In the case $title1 is equal to "Who's Online".
My error is:
You have an error in your SQL syntax near 's Online?')' at line 1
How do I change this so it can insert properly with all text?