Bug #11763 Updated: odbc_exec() throws ISE 500 error
| From: | lustig at acsu dot buffalo dot edu | Date: | Thu, 28 Jun 2001 02:47:52 +0000 |
| Subject: | Bug #11763 Updated: odbc_exec() throws ISE 500 error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58273@lists.php.net to get a copy of this message | ||
ID: 11763
User Update by: lustig@acsu.buffalo.edu
Status: Open
Bug Type: ODBC related
Operating system: Windows 98 SE
PHP Version: 4.0.6
Description: odbc_exec() throws ISE 500 error
Another note on the above code snippet -- the dbtext() function just puts quotes around whatever is
the params... ie, dbtext(1) would return "1" (the quotes being part of the returned
string).
--Jason
Previous Comments:
---------------------------------------------------------------------------
[2001-06-27 22:45:52] lustig@acsu.buffalo.edu
I have a bug... I have a function (of which the following code is from) which pulls data from a
remote MS SQL database through ODBC. The line with odbc_exec() is throwing an iSE 500 error on
apache 1.3.14 (which I knwo to be the exact line because it's fine when it's commented
out). I am using the PHP 4.06 windows binaries (from the PHP site) with the extra options
installed... and to note, $global_conn is a global persistent connection that is being made global
for the function of which the following code is a snippet:
global $page, $action, $ID, $user_data;
global $global_conn, $bgcolor;
$SQL = 'SELECT bunnyID, name, email, content, signed, IP, dateAdded FROM plotbunnies';
if ($action == 'view')
{
$SQL.= ' WHERE bunnyID = '.dbtext($ID);
}
$SQL.= ' ORDER BY dateAdded DESC ;';
$bunnies= odbc_exec($global_conn, $SQL);
When the $bunnes = odbc_exec($global_conn, $SQL); line is commented, it is fine; otherwise it gives
me an HTTP ISE 500 error.
--Jason
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11763