I get it sometimes, but I have never really figured out how I make it go away.
the only code that i haven't commented out in test is this:
Code: Select all
<?
switch ($_POST['submit']) {
case 'preview' :
echo 'This is a preview of "$_POST[text]"';
break;
case 'insert' :
{
$sql = "INSERT INTO phpbbeditor_content (
phpbbeditor_Text,
phpbbeditor_URL,
phpbbeditor_Date,
phpbbeditor_Image)
VALUES (
'".$_POST["text"]."',
'".$_POST["url"]."',
'".$_POST["date"]."',
'".$_POST["image"]."')";
$result = mysql_query($sql) or die (mysql_error());
?>