| File: |
??? |
| Role: |
Class source |
| Content type: |
text/plain |
| Description: |
class file pdo multicnxn |
| Class: |
PDO Multi Connection Class
Access different types of SQL database using PDO |
| Author: |
By Evert Ulises German Soto |
| 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('[email protected]', md5('123')));
$query = "SELECT * FROM users WHERE email=? AND `password`=?;";
$resp = $db->query($query, array('[email protected]', md5('123')));
|
| Date: |
9 years ago |
| Size: |
20,095 bytes |
|
|
|