// build the mapping with prefixes
foreach ( $this->tables as $s => $t ) {
$this->$t= $prefix .$s ;
}
}
Jay
Your class really takes ezSQL to the next level. I’m a big fan of SQLite, so I’ve ported a PDO module to your improved ezSQL. You can find the source code here:
Thanks for your reply. I think I’ve fixed that, I will check it though. There’s an updated copy on github which I had updated a few days ago. Cheers!
Jon
You replied so quickly! That’s wonderful!
I downloaded the latest version you have posted and it is still like that. It’s an easy fix, I just changed
public static $throw_exceptions = true;
in ezdb.class.php to:
public static $use_exceptions = true;
I have another question.
I would like to define the character encoding used in the database. There is an excellent page at http://www.stumbleupon.com/group/php/forum/37465/
He suggests using something like:
// Make sure we are using UTF-8 Character Encoding.
mysql_query(“SET NAMES ‘utf8′;”, $this->dbh);
mysql_query(“SET CHARACTER SET ‘utf8′;”, $this->dbh);
just after opening the connection to the database.
How could I incorporate this into the ezdb script most elegantly?
Thank you once again for the great scripts!
Nabeel
Hi Jon,
It’s updated on github, I had fixed that, along with a few mysqli issues. You can also post issues on the site there
The easiest way for that might just be:
DB::query(‘SET NAMES `utf8`’)
DB::query(‘SET CHARACTER SET `utf8`’);
Jackie
Thanks to improve ezsql.
I really love ezsql.
but want to have ezDB and use it with codeigniter..
so help me how to use ezDB with codeigniter….
Nabeel
Hi Jackie, Thanks! I’m not too familiar with CodeIgnitor, but it doesn’t have it own database functions? If it doesn’t, I’m sure there’s a way to include external libraries
Enes
Hi Nabeel!
Happy new year to you.
Are you planning to add memcache functionality to the ezsql? I have just checked the github and last commit made in October.
So, what’s the plan?
Nabeel
Hi Enes, happy new year to you too! I haven’t had time to add memcache integration just yet, it’s been a very very busy few months…
Pingback: ezSQL Database Library (Improved!) | nsslive