Search found 1 match
- Thu Apr 15, 2010 12:50 am
- Forum: PHP - Code
- Topic: static php class and second mysql call
- Replies: 0
- Views: 104
static php class and second mysql call
I've a DataManager class which looks like the following <?php class DataManager { protected static $link; private static function _getConnection($dbname = 'wgexpert') { if (isset(self::$link)) return self::$link; self::$link = mysql_connect('localhost', 'root', '' ); $db = mysql_select_db('wgexpert'...