Liquid Fire Posted March 10, 2008 Share Posted March 10, 2008 you know how with mysql function you can get the last error, is there any way to get detailed error information with PDO like "field name does not exist" or what not. Quote Link to comment Share on other sites More sharing options...
trq Posted March 10, 2008 Share Posted March 10, 2008 Even better, PDO can throw an PDOException. Quote Link to comment Share on other sites More sharing options...
Liquid Fire Posted March 10, 2008 Author Share Posted March 10, 2008 another question is is there a list of how to connect to each database type PDO supports? like mysql connects with host name, username, and password but sqlite2 connecting to a sq2 file from what i can see, what about postgresql, DB2, etc...? Quote Link to comment Share on other sites More sharing options...
trq Posted March 10, 2008 Share Posted March 10, 2008 Yes, its all covered in the manual. Each driver has its own DNS string. Quote Link to comment Share on other sites More sharing options...
Liquid Fire Posted March 12, 2008 Author Share Posted March 12, 2008 not all of them seemed to be covered, like what is the dns for the PDO_IBM driver? the PDO page does not show an example nor does the PDO_IDM driver page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.