Last change: |
- Charset modified default to UTF8, sometimes have problems when get a resultset
- The method "query" allows array to get the arguments, ex:
$query = "INSERT INTO users (email,`password`) VALUES(?,?);";
$resp = $db->query($query, array('salsadelmonte@hotmail.com', md5('123')));
$query = "SELECT * FROM users WHERE email=? AND `password`=?;";
$resp = $db->query($query, array('salsadelmonte@hotmail.com', md5('123')));
|