php de hata (mysql_insert_id)

olcaytoh

New member
Katılım
12 Şub 2007
Mesajlar
341
Reaction score
0
Puanları
0
s.a.
php de forum gibi birsey yapıyorum ama konu ekle dedigim de bu hata cıkıyor.

Parse error: parse error in c:\program files\easyphp1-8\www\forum\do_addtopic.php on line 18

o satırda
$topic_id = mysql_insert_id();
bu,ama bunun neresinde hata var anlayamadım.


$add_topic = "insert into forum_topics values ('','$POST[topic_title]',
now( ), '$_POST[topic_owner]')";df
//get the id of the last query
$topic_id = mysql_insert_id();

//
$add_post = "insert into forum_topics values ('mysql_insert_id','$topic_id',
'$_POST[post_text]',now( ),'$_POST[topic_owner]')";
mysql_query($add_post,$conn) or die(mysql_error( ));



YARDIM EDEBİLECEK VARSA SEVİNİRİM.
 
$topic_id = mysql_insert_id();

Tırnağa almayı denedin mi

$topic_id = "mysql_insert_id()";
 
SAOL KARDES,DENEDİM AMA HATA HALA MEVCUT.
Parse error: parse error in c:\program files\easyphp1-8\www\forum\do_addtopic.php on line 18

ACABA VERİTABANINA YAZMA İZNİMİ YOK ÇÜNKÜ ORDA HATA GÖZÜKMÜYO GİBİ,

CHMOD AYARIMI N VARMIS NERDEN YAPILIYO BİLEN VARMI ?
 
$add_topic = "insert into forum_topics values ('','$POST[topic_title]',
now( ), '$_POST[topic_owner]')";df

df'nin orda ne işi var?
 
bilmiyorum ama söyle degistirdim düzeldi ama post_text e yazmıyo simdi de :D saolun


$add_topic = mysql_query("insert into forum_topics values ('',now( ), '$_POST[topic_owner]','$_POST[topic_title]','$_POST[post_text]')");
//get the id of the last query
$topic_id = mysql_insert_id();

$add_post = "insert into forum_topics values ('$topic_id',
'$_POST[topic_title]',now( ),'$_POST[post_text]')";
mysql_query($add_post,$conn) or die(mysql_error( ));
 
Chmod

SAOL KARDES,DENEDİM AMA HATA HALA MEVCUT.
Parse error: parse error in c:\program files\easyphp1-8\www\forum\do_addtopic.php on line 18

ACABA VERİTABANINA YAZMA İZNİMİ YOK ÇÜNKÜ ORDA HATA GÖZÜKMÜYO GİBİ,

CHMOD AYARIMI N VARMIS NERDEN YAPILIYO BİLEN VARMI ?







CHMOD AYARI Ftp Üzerinden Yapılıyo
Ayarı Değiştiriceğin Dosya Yada Klasöre Sağ Tıkla Özellikleri Seç Zaten Göreceksin
 
Geri
Üst