Skip to content

Instantly share code, notes, and snippets.

@craiem
Created April 8, 2013 14:51
Show Gist options
  • Save craiem/5337373 to your computer and use it in GitHub Desktop.
Save craiem/5337373 to your computer and use it in GitHub Desktop.
php -> db.php snippet
require('db.php');
//$db->select($table,$where=array(),$limit=false,$order=false,$where_mode="AND",$print_query=false)
//$db->update($table, $fields=array(), $where=array())
//$db->insert($table, $fields=array())
$db = new db($database_name, $username, $password, $host); // $host is optional and defaults to 'localhost'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment