Re: [PHP-DB] PDO Exception Handling Question

2006-05-03 Thread Cyril PIERRE de GEYER
But if there is an error in the SELECT query (either syntax error, or reference to missing table), then no exception is raised, and control just continues in the try block with a null result from the query. Is this the intended behaviour? Hey, it's really fun I was looking here and on

Re: [PHP-DB] PDO Exception Handling Question

2006-05-03 Thread Cyril PIERRE de GEYER
And also my question is : Why did the PDO creators (Wez the King?) decide to choose the silent mode for being the default one ? Why not defining the ERRMODE_WARNING by default ? Or perhaps I misunderstand something, and I would be very happy to learn a bit :) Thx Cyril -- PHP Database

Re: [PHP-DB] PDO Exception Handling Question

2006-05-03 Thread Cyril PIERRE de GEYER
-errorInfo(); // $info[0] == $dbh-errorCode() unified error code // $info[1] is the driver specific error code // $info[2] is the driver specific error string Cyril PIERRE de GEYER a écrit : And also my question is : Why did the PDO creators (Wez the King?) decide

[PHP-DB] [PDO] - Using bindParam() third parameter : data_type

2006-05-09 Thread Cyril PIERRE de GEYER
Hi all, I am currently working on PDO. Exactly on the bindParam() function. The third parameter data_type seems to be here to force the type of the value ? But when I try : $sql = INSERT INTO produit (idproduit, nom, marque) VALUES (NULL, :nom, :marque); $stmt = $dbh-prepare($sql);

[PHP-DB] Re: php4 to php5 upgradation

2006-06-09 Thread cyril PIERRE de GEYER
You just need to install PHP5 and to change your apache configuration (httpd.conf). If you are a windows user i guess it would be easier for you to use wampserver which allow to switch from PHP5 to PHP4 easily. Regards Cyril Manoj Singh a écrit : Hello all, I am using php4 in windows