Hello,
I would like to access a non XF2 mysqli database from a custom addon.
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 namespace.
Any idea what I could do?
Regards, rhodes
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 namespace.
Any idea what I could do?
Regards, rhodes