Hi there,
I've just setup FCK on a new site and all works fine.
I now copied and used it on another site but all of a sudden everytime i insert a picture or a link i get a million and one \\\"\\ in the source code.
For every " " in the source code FCK is changing it so "\\ for some reason.
I downloaded the latest FCK and replaced the whole directory but i still get the same problem and i cant work out why.
If anyone can help i'd really appreciate it.
Thanks
I've just setup FCK on a new site and all works fine.
I now copied and used it on another site but all of a sudden everytime i insert a picture or a link i get a million and one \\\"\\ in the source code.
For every " " in the source code FCK is changing it so "\\ for some reason.
I downloaded the latest FCK and replaced the whole directory but i still get the same problem and i cant work out why.
If anyone can help i'd really appreciate it.
Thanks
Re: Image Upload problem \\\"\\
Re: Image Upload problem \\\"\\
I get this too, but also, if I insert a simple link, similar code is inserted.
For example: I manually type in:
<a href="http://www.reaxiongraphics.com/">Reaxion Graphics</a>
I get:
<p><a href="\"http://www.reaxiongraphics.com/\"">Reaxion Graphics</a></p>
Re: Image Upload problem \\\&quot;\\
Check it out, you have to add the code "stripslashes" - got this from a programmer I contract to..... this is in your include at the top....
<?php
// Connect to the database
$cnx = mysql_connect("localhost", "username", "password")
OR die("Unable to connect to database!");
mysql_select_db("reaxion_fck_data", $cnx);
if ($_POST['submit_form'] == 1) {
// Save to the database
$data = mysql_real_escape_string(stripslashes(trim($_POST['fcktext'])));
$res = mysql_query("UPDATE fck_data SET data = '".$data."' WHERE id = 1");
if (!$res)
die("Error saving the record! Mysql said: ".mysql_error());
// Redirect to self to get rid of the POST
header("Location: index.php");
}
include_once("fckeditor/fckeditor.php") ;
?>
Re: Image Upload problem \\\&quot;\\