Log in

View Full Version : $DB_site Explaination


Neo
11-03-2002, 07:25 PM
ALright this may seem odd for a pro like me (HAHAHAHAHAH) but I was wondering if anyone that knows or understands to OO in vbulletin? I know that it connects to the database and does all the session bs but I am not to sure what the process is when you use this to connect to do mysql querys...

example:
$DB_site->query();

How does this contain or know to contain mysql_ ... and whats its main purpose?

Thanks
- Ohhh Billy :banana:

NTLDR
11-03-2002, 07:33 PM
The db_mysql.php file contains the conversion of $DB_site->query etc into mysql_query and defines how vB connects to the DB. This could be re-written to allow connection to Oracle say.

tHE DSS
11-03-2002, 07:48 PM
Check out the file NTLDR pointed you at, and read this article :

http://www.devshed.com/Server_Side/PHP/Class/page1.html

... you'll notice what's going on.