امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hi, I'm trying to write my first add on to implement some queries in my board.
So I used the cmd.php to create a new addon mediabasar/dealstats. Inside the dealstats folder there are two files, addon.json and stats.php.
stats.php looks as the following:
PHP:
Read more
So I used the cmd.php to create a new addon mediabasar/dealstats. Inside the dealstats folder there are two files, addon.json and stats.php.
stats.php looks as the following:
PHP:
کد:
<?php
namespace mediabasar\dealstats;
$db = \XF::db();
use XF\Mvc\Entity\Entity;
class extension
{
$totaldeals = $this->db()->fetchAll("
SELECT count(listing_id) as anzahl
FROM xf_z61_classifieds_listing...
Read more
