Thread: The SQL Class
View Single Post
Old 01-16-2009, 12:26 PM   #34 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

A good suggestion. Should I add it like a prefix?

private $prefix;

And then have it assigned at the setHandler.
And a function to change, which would automaticly trigger the disconnect, then connect again using the new prefix ?

I'm not exactly sure if all the databases uses same commands cause I've only used Mysql.

Mysqli, do they have it like mysql_connect, but using mysqli instead of mysql: mysqli_connect ?
And how about query, and array, do they all use the same command, just a different prefix?
__________________
Tanax is offline  
Reply With Quote