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.
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.