PHP 4.0 Bug #10080: can't call the function sybase_affected_rows() for insert, update and delete
| From: | lingqin at solveinteracive dot com | Date: | Fri, 30 Mar 2001 18:25:04 +0000 |
| Subject: | PHP 4.0 Bug #10080: can't call the function sybase_affected_rows() for insert, update and delete | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50368@lists.php.net to get a copy of this message | ||
From: lingqin@solveinteracive.com
Operating system: windows NT
PHP version: 4.0.4pl1
PHP Bug Type: Sybase (dblib) related
Bug description: can't call the function sybase_affected_rows() for insert, update and delete
Hello Sirs.
When I use sybase_affected_rows() fucntion for our project, the function call failed.
Following is the code snippet:
$query = "insert into form_form values('company', 'lingqin',
'file', 'email@mtcibs.com', 'subject')";
$conn = sybase_connect($server, $user, $pass);
sybase_select_db($dbname, $conn);
$result = sybase_query($query, $conn);
$rows = sybase_affected_rows($result);
When I run the above script, I got the following error:
Fatal error: Call to undefined function: sybase_affected_rows() in
/webdev/skmtest/rw/docroot/sybtest.phtml on
line 9
But, the PHP manul tells me the above function can be used by PHP 3>= 3.0.6, PHP 4
We are using PHP Version 4.0.4pl1.
Please let me know what's the problem.
Thanks a lot.
Ling Zhang
--
Edit Bug report at: http://bugs.php.net/?id=10080&edit=1