$DB_site is my friend...
Saves SOOOOOOO much coding.
A suggestion... get under the $DB_site hood...
Go to your admin folder and open db_mysql.php
That contains the complete code for the $DB_site object, including all it's methods, like insert_id and stuff...
IMPORTANT TO NOTE:
If you want to use $DB_site (and other standard vB variables, like $bbuserinfo) you need to start your script with a
require("global.php");
And to use $DB_site in a FUNCTION, you have to declare it as a global
global $DB_site;
Otherwise you'll get slapped with parse errors talking about member functions of a non-object
|