A test of syntax highlighting, and my first post
Well this is my first post here, and I thought that it would be good to try out the syntax highlighting plugin I have installed.
* getInstance
*
* This method returns DB instance or creates an intitial connection
*
* @author Chris Ramsay
* @param void
* @return self::$instance static instance of db connection
*
*/
public static function getInstance() {
if (!self::$instance) {
self::loadConnectionParams();
self::$instance = new PDO(self::$type . ':host=' . self::$host . ';dbname=' . self::$dsn, self::$user, self::$pass);
self::$instance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
return self::$instance;
}
About this entry
You’re currently reading “ A test of syntax highlighting, and my first post ,” an entry on chris ramsay
- Published:
- 8.30.06 / 11pm
- Category:
- PHP










No comments
Jump to comment form | comments rss [?] | trackback uri [?]