iall Posted October 23, 2007 Report Share Posted October 23, 2007 (edited) Labvakar , lūk jaunumu skripts (izvelk jaunumus no datubāzes) - http://paste.php.lv/6300 Apakšā ir include "comment.php"; Kad es pievienoju komentāru skriptu man viņš rādās visos jaunu rakstos (Vienam pievieno komentāru ,visiem rādās viens un tas pats komentārs). Kas varētu būt par vainu? Edited October 23, 2007 by iall Link to comment Share on other sites More sharing options...
Delfins Posted October 24, 2007 Report Share Posted October 24, 2007 Zīlēšu - tev komentāriem nav piesaistes pie STORY_ID Link to comment Share on other sites More sharing options...
marcis Posted October 24, 2007 Report Share Posted October 24, 2007 Varbūt drīzāk būtu iemetis komentāru skriptu? Citādāk grūti izzīlēt kas par vainu ;) Link to comment Share on other sites More sharing options...
p4F Posted October 24, 2007 Report Share Posted October 24, 2007 sataisi ko līdzīgu šim tajā savā coment.php mysql_query("INSERT INTO coment (*, *, *, STORY_ID) VALUES (*, *, *, {$_GET['newsid']} "); Link to comment Share on other sites More sharing options...
iall Posted October 24, 2007 Author Report Share Posted October 24, 2007 Es ņēmu to komentāru skriptu no šejienes ,atradu php.lv/f/ Link to comment Share on other sites More sharing options...
andrisp Posted October 24, 2007 Report Share Posted October 24, 2007 Tad jau skaidrs, lukur pareizas skripts Link to comment Share on other sites More sharing options...
iall Posted October 24, 2007 Author Report Share Posted October 24, 2007 Kā tas bija jāsaprot? :D Link to comment Share on other sites More sharing options...
andrisp Posted October 24, 2007 Report Share Posted October 24, 2007 Un kā lai saprot tavu "Es ņēmu to komentāru skriptu no šejienes ,atradu php.lv/f/" ? Tu domā, ka mēs te kaut kādi gaišreģi esam ? Link to comment Share on other sites More sharing options...
iall Posted October 24, 2007 Author Report Share Posted October 24, 2007 Lūk kur komentāru skripts - http://paste.php.lv/6308 Link to comment Share on other sites More sharing options...
andrisp Posted October 24, 2007 Report Share Posted October 24, 2007 Tev raksti glabājas DB, bet komentāri failā (vēl pietams visi vienā failā; un kas pats krutākais - php failā ? Tu zini, ko tas nozīmē ? ) ? Iesaku nemocīties, un komentārus arī likt iekš DB. Link to comment Share on other sites More sharing options...
iall Posted October 24, 2007 Author Report Share Posted October 24, 2007 Labi. Link to comment Share on other sites More sharing options...
Recommended Posts