קוד ההוספה :
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','pic','stext','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', `pic` = '$spic', `stext` = '$stext', `text` = '$text' WHERE id='$id'";
$result = mysql_query($sql) or die(mysql_error());
בשניהם ישנה בעיה כלשהי אשר לא מאפשרת לי בשום אופן לשים טקסט ארוך כלשהו, אני יכול לכתוב שם בלה לדוגמא וזה ישלח ולשלוח קצת יותר תוכן נגיד כתבה שלמה וזה לא יפעל, למה זה ככה? כיצד ניתן לפתור זאת, אשמח לקבל עזרה.