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. Link to comment https://forums.phpfreaks.com/topic/95317-pdo-question/ Share on other sites More sharing options...
trq Posted March 10, 2008 Share Posted March 10, 2008 Even better, PDO can throw an PDOException. Link to comment https://forums.phpfreaks.com/topic/95317-pdo-question/#findComment-488354 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...? Link to comment https://forums.phpfreaks.com/topic/95317-pdo-question/#findComment-488389 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. Link to comment https://forums.phpfreaks.com/topic/95317-pdo-question/#findComment-488403 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. Link to comment https://forums.phpfreaks.com/topic/95317-pdo-question/#findComment-490689 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.