[RSS Feed/News] Integrate my own SQL Query

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hi,
I've got this Query:
Code:

SELECT count(listing_id) as anzahl FROM `xf_z61_classifieds_listing` where listing_status like 'sold' group by listing_status

I want to show $anzahl in my board statistic widget. Where do I have to implement the SQL / PHP code to define and use variable $anzahl in the corresponding template?
Is there another way than building a whole add on just for this?

thx

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom