View Full Version : How does vBulletin handle Mysql SQL statements?
vb_guru
09-13-2004, 09:27 AM
I am looking for a tutorial on how vBulletin uses MySQL in the PHP scripts. It seems like the db connection and other info is store in a function or script but I can't find it. I want to add several queries to non-vb php pages. Any help would be appreciated.
Xenon
09-13-2004, 09:44 AM
well, the $DB_site is an object which holds the connection and executes the queries, look into db_mysql.php for more infos about that class.
executing queries is very easy, just include global.php in your script and then use
$DB_site->query('Your query here');
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.