|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-22 06:08 UTC] sniper@php.net
[2003-08-22 06:42 UTC] jkshin at naver dot com
[2003-08-22 08:36 UTC] sniper@php.net
[2003-08-22 18:28 UTC] jkshin at naver dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 18:00:01 2025 UTC |
Description: ------------ RedHat8.0 + php-4.3.2 + apache_1.3.20 + informix7.3.0 informix user can dbaccess. please help me !! Reproduce code: --------------- <html> <?php $database = "test"; $host = "db"; $user = "informix"; $pass = "informix"; if (!$connect_id = ifx_connect("$database@$host", $user, $pass)) { echo "Unable to connect to Informix Database\n"; exit(); } $sql = "select customer, quantity from order"; $result = ifx_query($sql, $connect_id) or die ("couldn't execute the query"); ?> <table> <tr> <?php while ($row = ifx_fetch_row($result)) { echo "<td>".$row['customer']."</td>"; echo "<td>".$row['quantity']."</td>\n"; } ifx_free_result($result); ifx_close($connect_id); ?> </tr> </table> </html> Expected result: ---------------- Warning: ifx_connect(): E [SQLSTATE=IX 000 SQLCODE=-461] in /usr/local/apache/htdocs/aaa.php3 on line 7