ID: 42459
Updated by: [EMAIL PROTECTED]
Reported By: glowacki at europa dot pl
Status: Open
-Bug Type: Informix related
+Bug Type: Documentation problem
Operating System: any
PHP Version: 5.2.3
New Comment:
Reclassified.
Previous Comments:
------------------------------------------------------------------------
[2007-08-28 11:25:59] glowacki at europa dot pl
Description:
------------
mistake in PHP example: en/reference/ifx/functions/ifx-query.xml
file: en/reference/ifx/functions/ifx-query.xml
...
$res_id = ifx_query("select * from orders", $conn_id);
if (! $res_id) {
printf("Can't select orders : %s\n<br />%s<br />\n", ifx_error());
ifx_errormsg();
die;
// printf(): Too few arguments
// unexpected ');' after 'ifx_error()'
Expected result:
----------------
$res_id = ifx_query("select * from orders", $conn_id);
if (! $res_id) {
printf("Can't select orders : %s\n<br />%s<br />\n", ifx_error(),
ifx_errormsg());
die;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42459&edit=1