##php-DBUtils
A simple PHP class containing several mysql database-related functions that you can use in your own projects.
public function realEscape($val)
- A function to easily escape any valuepublic function isInTheTable($table_name, $field_name, $value)
- Check if a given field contains a given value in a given tablepublic function isInTheTableMultiple($table_name, $fields)
- Check if a given fields contain given values in a given tablepublic function postValue($key, $num = FALSE)
- Grab escaped value from standard $_POST arraypublic function getValue($key)
- Grab escaped value from standard $_GET arraypublic function sessionValue($key)
- Grab escaped value from standard $_SESSION arraypublic function cookieValue($key)
- Grab escaped value from standard $_COOKIE arraypublic function arrayValue($key, $array, $default = '')
- - Grab escaped value an arraypublic function insert($table, $data)
- Create MySQL INSERT statement by providing the table name and an associative array containing fields and values
###Example Usage
echo $dbutils->insert("mb_details", array(
'brID' => 1,
'rsCode' => 16515.1546,
'desc' => "seyhgseh serhgrt'i'usehrig sergseg",
'other' => NULL
));