Bug #18163 Updated: odbc_free_result()
| From: | derick@php.net | Date: | Thu, 04 Jul 2002 12:19:49 +0000 |
| Subject: | Bug #18163 Updated: odbc_free_result() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13106@lists.php.net to get a copy of this message | ||
ID: 18163
Updated by: derick@php.net
Reported By: vharms@computrain.nl
-Status: Open
+Status: Bogus
Bug Type: ODBC related
Operating System: NT4 Server
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Please set the correct settings in your php.ini file:
log_errors=on
display_error=off (or simliar)
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-07-04 08:13:23] vharms@computrain.nl
<?php
$conn_id = odbc_connect("Events","","",SQL_CUR_USE_ODBC);
$cur = odbc_exec($conn_id,"select place,name from country where subkop
= '1'");
while(odbc_fetch_into($cur, $data)){
print("<option value='$data[0]'>$data[1]</option>");
}
odbc_close($conn_id);
odbc_free_result($conn_id);
?>
When I look at the html source after running this script I see a
warning saying: wrong parametercount for odbc_free_result() in <b>
D:\InetPub\scripts\datainfo\city.php</b> on line <b>115</b><br>
This is rather dangerous displaying the full path of the document.
Somebody could take advantage of this kind of info.
Greetings, Victor
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18163&edit=1