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:

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

Check out these Sites:
Shove-It Records
Real Ultimate Power
The List!
Fat Wreck Chords
Punk Voter
Lazy Test

  Join Out Email List

Get Your FREE Music Here
We're so confident you'll like our new CD that we're giving you a chance to hear it free!!!
"Did you say FREE?!"
That's right, I said free. But wait... there's more!
Actually, there's no more.
Here's some mp3s below for you to listen to, burn onto a CD, give it to your uncle who's a A&R Rep for Arista Records, and take a 1% commission on our million dollar record deal.


Today - Mp3
Business As Usual - Mp3
Face - Mp3