problem with throwing error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You might want to take it even further ....to pdo
http://de2.php.net/pdo
staar2
Forum Commoner
Posts: 83
Joined: Fri Apr 06, 2007 2:57 am

Post by staar2 »

volka wrote:You might want to take it even further ....to pdo
http://de2.php.net/pdo
Better then mysqli ?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

In certain aspects, yes.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

In other aspects, not necessarily.

If you are used to the mysql_* family of functions then the MySQLi functions will come very natural to you. PDO introduces a new set of standard DB interaction functions that are nice once you learn them, but do take a little getting used to.

Also, PDO is very extensible, as long as you have the approriate DB drivers on the server.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Everah wrote:Also, PDO is very extensible, as long as you have the approriate DB drivers on the server.
And that's unfortunately the big stopper :(
I was already suprised by
staar2 wrote:oh k i found that mysqli is installed to my server so i can use that. It should be better then mysql right ?
;)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

volka wrote:
Everah wrote:Also, PDO is very extensible, as long as you have the approriate DB drivers on the server.
And that's unfortunately the big stopper :(
I was already suprised by
staar2 wrote:oh k i found that mysqli is installed to my server so i can use that. It should be better then mysql right ?
;)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Getting the PDO drivers to work correctly is the one thing stopping me from using it exclusively. I can make it work with MySQL/PostgreSQL, but trying to get it to work right with Sybase/MS SQL is a pain in the butt that I cannot take the time to try to fix. It is just plain easier to use ADODBlite or some other DBAL.

I do toy with PDO when I make my own local apps though. It is a neat extension.
staar2
Forum Commoner
Posts: 83
Joined: Fri Apr 06, 2007 2:57 am

Post by staar2 »

I think i'm going to use mysqli, most of the functions are same like in mysql, but i like OO support. PDO is to great but i think in Estonia most servers dosen't have it installed.
Post Reply