Zonet
Web Developer
Eeeh.. I think I saw some scripts that was posted by Paxton with that and in code.google.com and the guy Kavvson is releasing his script uppercase IF/ECHO the new fashion in php. ^_^
[B]Size[/B]: 185 gold
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = POT::getInstance()->getDBHandle();
Ehm..
I see this in every script that have connection to sqlPHP:$ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = POT::getInstance()->getDBHandle();
Put it in index.php better and they should make in script $_sql = true; then it connects to sql![]()
$sys =& get_instance();
$sys->load->database();
$sys->db->query("");
No, instead of writing this, you should just make $_sql = true; It connetcs to sql with that file, not in every file. If the file doesn't have $_sql variable defined, then it should be false as default.There is no point of this, as it will make another DB connection on pages without even injections. However, I don't use this driver and I would recommend the one which is used within models.
PHP:$sys =& get_instance(); $sys->load->database(); $sys->db->query("");
No, instead of writing this, you should just make $_sql = true; It connetcs to sql with that file, not in every file. If the file doesn't have $_sql variable defined, then it should be false as default.
I don't get you.
The injections would be loaded at last, so how would that work lol
$_sql = true;
$sys =& get_instance();
$sys->load->database();
$sys->db->query("");
I mean like, if you write in whoisonline.php
Would be same asPHP:$_sql = true;
PHP:$sys =& get_instance(); $sys->load->database(); $sys->db->query("");
It would be easier, than everytime write this.