#42459 [Opn->Csd]: mistake in PHP example: en/reference/ifx/functions/ifx-query.xml

From: Date: Sat, 01 Sep 2007 09:42:46 +0000
Subject: #42459 [Opn->Csd]: mistake in PHP example: en/reference/ifx/functions/ifx-query.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377961@lists.php.net to get a copy of this message
ID: 42459 Updated by: nlopess@php.net Reported By: glowacki at europa dot pl -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: any PHP Version: 5.2.3 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2007-08-28 11:46:28] jani@php.net Reclassified. ------------------------------------------------------------------------ [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

« previous php.doc (#969377961) next »