Bug #10980 Updated: mssql query error
| From: | fmk@php.net | Date: | Tue, 22 May 2001 03:28:48 +0000 |
| Subject: | Bug #10980 Updated: mssql query error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56169@lists.php.net to get a copy of this message | ||
ID: 10980
Updated by: fmk
Reported By: njgreen@jlonline.com
Status: Open
Old-Bug Type: MSSQL related
Bug Type: ODBC related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:
ODBC related should not be reported as MSSQL related.
Furthermore I think we need some more information about this error.
Are you getting other results than expected ? What is 'result' ? You dont have any
variables in the code with that name.
If 'result' is the output from odbc_num_rows() we need to know the structure of the table
and what you expect from your data.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-21 02:57:59] njgreen@jlonline.com
//error source
$connid=odbc_connect('odbc_db','odbc_user','odbc_pswd');
$sql='select id from bt_article where id<>978';
$row=odbc_do($connid,$sql);
echo odbc_num_rows($row);
//result -1
//if $sql='select title from bt_article where id<>978 order by id';
//result is ok
//if $sql='select title from bt_article where id=978 order by id';
//result -1
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10980&edit=2