Quote:
Originally Posted by MARCO1
Unfortunate that's not true, vBulletin doesn't have a custom database engine,There's no other way to make a query in MySQL without using mysql_query(), vBulletin use a normal mysql queries that has been advanced by making a custom classes like any other database classes.
|
In vB 5 you should be using...
PHP Code:
vB::getDbAssertor()->update('node', array('approved' => '0'), array('nodid' => $nid));
Not...
PHP Code:
mysql_query("UPDATE node SET approved = '0' WHERE nodeid = '$nid'");
You will run into problems on many Nginx servers using the later method.
The vb 4 equivalent was only mentioned because many Nginx servers have trouble if you don't use the $vbulletin->db->... and use a straight mysql query in a mod's code.