PHP קוד:
$sub = $_POST['submit'];
$stext = $_POST['stext'];
$spic = $_POST['spic'];
$title = $_POST['title'];
$text = stripslashes( $_POST['FCKeditor1'] ) ;
$text = mysql_escape_string($text);
if(isset($sub)){
@mysql_query("INSERT into articles(`title`,`spic`,`stex`,`text`) VALUES (`$title`,`$spic`,`$stext`,`$text`)") or die (mysql_error());
קוד עריכה:
PHP קוד:
$sub = $_POST['submit'];
$title = $_POST['title'];
$spic = $_POST['spic'];
$stext = $_POST['stext'];
$text = stripslashes( $_POST['FCKeditor1'] ) ;
$text = mysql_escape_string($text);
if($sub){
$sql = "UPDATE `articles` SET `title` = '$title', `spic` = `$spic`, `stext` = '$stext', `text` = '$text' WHERE id='$id'";
$result = mysql_query($sql) or die(mysql_error());
תנסה את זה