I'm trying to figure out how to insert an single htmltag into a db:
Here is what I got so far:
$rep = htmlentities('<p>');
$insert = "INSERT INTO ".$prefix."_str_replaces (from) VALUES ('$rep')";
mysql_query($insert) or die("Error: (" . mysql_errno() . ") " . mysql_error());
When running this I get this error?
Error: (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from) VALUES ("<p>")' at line 1
What am I doing wrong?
Thanks in advance ;-)