Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: comments_include.php

Parašė ramon· 2008 Lie. 11 23:07:54
#1

Visu pirma isjunk smailus o antra tai reikia rasyti ne $data['user_id'] o $data['comment_name']
pvz:
echo number_format(dbcount("(comment_id)", "comments", "comment_name='".$data['comment_name']."'"));




Kodel?

Pasiziurek i uzklausa:

   $result = dbquery(
      "SELECT tcm.*,user_name FROM ".DB_PREFIX."comments tcm
      LEFT JOIN ".DB_PREFIX."users tcu ON tcm.comment_name=tcu.user_id
      WHERE comment_item_id='$cid' AND comment_type='$ctype'
      ORDER BY comment_datestamp ASC"
   );