View Single Post
ישן 21-06-07, 18:11   # 1
X-T
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jan 2007
הודעות: 1,021

X-T לא מחובר  

בעיות עם כמה שאילתות עם PHP

קוד ההוספה :
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()); 
בשניהם ישנה בעיה כלשהי אשר לא מאפשרת לי בשום אופן לשים טקסט ארוך כלשהו, אני יכול לכתוב שם בלה לדוגמא וזה ישלח ולשלוח קצת יותר תוכן נגיד כתבה שלמה וזה לא יפעל, למה זה ככה? כיצד ניתן לפתור זאת, אשמח לקבל עזרה.
__________________
You don't shine if you don't glow
  Reply With Quote