2017-07-08, 10:00 AM
Hello,
I can't seem to find a solution querying successful the phpmyadmin database from other pages on my site.
My var_dump returns NULL on every occasion.
I alse checked the $conn_mbb variable, nothings wrong there.. the connection to the database is sccessful
I found this article, on how to query the db:
https://docs.mybb.com/1.8/development/pl...e-methods/
But it doesn't states which files need to be included in order to get this methods working
I can't seem to find a solution querying successful the phpmyadmin database from other pages on my site.
$sql5 = "SELECT * FROM `mbb_users` WHERE `uid` = 1";
$result5 = $conn_mbb->query($sql5);
$row5 = $result->fetch_assoc();
var_dump($row5);
echo 'Username: '. $row5['username'].'';
My var_dump returns NULL on every occasion.
I alse checked the $conn_mbb variable, nothings wrong there.. the connection to the database is sccessful
I found this article, on how to query the db:
https://docs.mybb.com/1.8/development/pl...e-methods/
But it doesn't states which files need to be included in order to get this methods working