For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2007 > #42459 [Opn]: mistake in PHP example: en/reference/ifx/functions/ifx-query.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #42459 [Opn]: mistake in PHP example: en/reference/ifx/functions/ifx-query.xml
jani@php.net

2007-08-28, 8:12 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com