Hello -
I've been following this tutorial here:
https://vborg.vbsupport.ru/showthread.php?t=119350
I've been trying to access the database via this code:
Code:
$mytest = $db->query_read("SELECT state_name FROM vb_sidemenu_states WHERE state_id=1");
I put it in a plugin and assigned it to global_start hook. When I display the $mytest variable in a template, I get:
I've also tried
Code:
$mytest = $vbulletin->db->query_read("SELECT state_name FROM vb_sidemenu_states WHERE state_id=1");
Where I am wrong?
The above selected table is in the vb database