![]() |
|
|
|||||||
| embarcadero.public.delphiphp.database This group is for all discussion about databases and using them with Delphi for PHP. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello, I have a problem here (Suppose $Unidad2 is a DataModule):
try { $Unidad2->db->Open(); echo "good"; } catch(EDatabaseError $e) { echo "bad"; } it works fine, but it shows me the warning. And if i supress the warnings with the @ operator, like: try { $Unidad2->db->Open(); echo "good"; } catch(EDatabaseError $e) { echo "bad"; } the exception is not raised, the connection is not made, and the Connected property stills returns TRUE. Briefing: i need how to not show the cant-connect-warnings, but at the same time allow exceptions to catch if the database could connect or not. The db property, in this case, is a "Database" component. Last edited by endlessloop; 22nd January 2010 at 21:51. |
| Sponsored Links |
|
|