class PdoConnection{ //variable to hold connection object. protected static $db; //private construct - class cannot be instatiated externally. private function __construct() { try { // assign PDO object to db variable self::$db = new PDO('mysql:host=localhost;dbname=gamefool_jst', 'gamefool_jst', 'jay071377', array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") ); self::$db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); } catch (PDOException $e) { //Output error - would normally log this to error file rather than output to user. echo "Connection Error: " . $e->getMessage(); } } public static function getConnection() { if (!self::$db) { new PdoConnection(); } return self::$db; } } SecondShot's Official Website

  









      



Listen: Today.mp3
From the CD
Seven Years Bad Luck


Email us:
jay@secondshit.com

Check out these Bands:
Ditch Raymond
The Living End
NOFX
My New Life
Lagwagon
Bad Religeon
Propaghandi
The Gamits
Allergic to Idiots
Strike Anywhere
Abandon All Hope


Check out these Sites:
Shove-It Records
RyanGreene.com
Real Ultimate Power
The List!
Miserable Melodies.com
Fat Wreck Chords
Epitaph
PunkHardcore.com
Punk Voter
Lazy Test




  Join Out Email List

Buy Our Stuff!

-Seven Years Bad Luck- $8.00
'Seven Years Bad Luck' The best CD ever?! Yes, that's right. This is the best CD ever and yours for the low, low price of $8. What's that you say? "You're selling the best CD ever for $8?" Yes, that's right $8, but act now, for this offer is only valid for the 1st million customers. Buy at SmartPunk.com