#42459 [Opn]: mistake in PHP example: en/reference/ifx/functions/ifx-query.xml
| From: | jani@php.net | Date: | Tue, 28 Aug 2007 11:46:28 +0000 |
| Subject: | #42459 [Opn]: mistake in PHP example: en/reference/ifx/functions/ifx-query.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377920@lists.php.net to get a copy of this message | ||
ID: 42459
Updated by: jani@php.net
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