View Single Post
ישן 23-02-06, 14:03   # 4
DaNieLLL
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 32
הודעות: 614

DaNieLLL לא מחובר  

מה אתה מנסה לעשות פה? לשנות נתונים או להכניס נתונים חדשים?
אם נתונים חדשים:

PHP קוד:
$sql "INSERT INTO `books`  (`bookname`, `reporter`, `maf`, `about`) VALUES ('$bookname' , '$reporter' , '$maf', '$about')";
mysql_query($sql) or die(mysql_error()); 
ואם עדכון נתונים:


PHP קוד:
$sql "UPDATE  books SET  `bookname`='$bookname'  and `reporter`='$reporter'  and `maf`='$maf' and `about`='$about'";
mysql_query($sql) or die(mysql_error()) 
רק לגבי זה אני לא בטוח אם צריך את הand או לא.
__________________

Last edited by DaNieLLL; 23-02-06 at 14:10..
  Reply With Quote