
21-03-2008, 01:57 AM
|
 | Wannabe Geek Recent Blog:
[CaRP] XML error: Invalid character at line 55 | | | Join Date: Jan 2007 Location: Dublin
Posts: 416
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0 | |
Quote:
Originally Posted by Frodo A) Have you tried turning TinyMCE off to make sure it's not doing it.
B) This is different code that the first piece you posted.
C) Change this: PHP Code: if(move_uploaded_file($_FILES['image']['tmp_name'], $target_path)) { mysql_query("INSERT INTO ".$_REQUEST['table']." VALUES (NULL,'".$_REQUEST['title']."','".$_REQUEST['body_text']."','".date("Y-m-d")."','".date("G:i:s")."','".basename($_FILES['image']['name'])."',1,'".$_SERVER['REMOTE_ADDR']."')"); }
to PHP Code: if(move_uploaded_file($_FILES['image']['tmp_name'], $target_path)) { $content = $_REQUEST['body_text']; $content = mysql_escape_string($content); mysql_query("INSERT INTO ".$_REQUEST['table']." VALUES (NULL,'".$_REQUEST['title']."','".$content."','".date("Y-m-d")."','".date("G:i:s")."','".basename($_FILES['image']['name'])."',1,'".$_SERVER['REMOTE_ADDR']."')"); }
| Same thing happens when i disable TinyMCE(never had a problem before with it) also that code snippet you suggested there, i've tried it and same thing still happens!
I feel like crying! |