Skip to content

Instantly share code, notes, and snippets.

@ShawnAbshire
ShawnAbshire / SafePDO.php
Created December 13, 2014 04:49
SafePDO
<?php
use PDO;
Class SafePDO extends PDO {
private $server = "";
private $username = "";
private $pass = "";
private $database = "";
public static function exception_handler($exception) {
@ShawnAbshire
ShawnAbshire / professions_enchanting.sql
Created December 12, 2014 18:27
12/12/2014 - Current dump of my wow professions_enchanting table. Allows you to associate the effectid to the spellid/itemid/slot/enchant name.
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 12, 2014 at 07:20 PM
-- Server version: 5.6.20
-- PHP Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";