Quote:
Originally Posted by sambah
Aha. I was wondering what all the $db, $this->db, $vbulletin->db etc malarky was 
|
The main purpose of the database object is support for other databases without recoding all of the files. It also gives you fancy errors when you mess something up. Doing the same for each query using the native calls (mysql_query() for example), would require you to have to check it every time for failure.
Well... I'm out for the night, but I'll leave you guys with some good reads about vBulletin and how to write your own scripts using it...
Tutorial Index:
https://vborg.vbsupport.ru/showthread.php?t=99570
Pay special attention to these threads:
https://vborg.vbsupport.ru/showthread.php?t=98047
https://vborg.vbsupport.ru/showthread.php?t=98009