امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hello,
I would like to access a non XF2 mysqli database from a custom addon.
PHP:
Unfortunately, the attempt to connect to Mysqli causes an error: Could not fetch Mysqli.
The database exists. I use the same call successfully in another PHP script, but without...
Read more
I would like to access a non XF2 mysqli database from a custom addon.
PHP:
کد:
<?php
namespace mynamespace;
class myClass
{
.....
public static function myfunction($mediaKey, array $site, $siteId) {
...
$mysqli = new \mysqli($this_host,$this_user,$this_pw,$this_db);
....
Unfortunately, the attempt to connect to Mysqli causes an error: Could not fetch Mysqli.
The database exists. I use the same call successfully in another PHP script, but without...
Read more
