#10080 [Com]: can't call the function sybase_affected_rows() for insert, update and delete
| From: | tits-show1764 at hotmail dot com | Date: | Tue, 20 Jul 2004 14:59:21 +0000 |
| Subject: | #10080 [Com]: can't call the function sybase_affected_rows() for insert, update and delete | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62742@lists.php.net to get a copy of this message | ||
ID: 10080
Comment by: tits-show1764 at hotmail dot com
Reported By: lingqin at solveinteracive dot com
Status: Bogus
Bug Type: Sybase (dblib) related
Operating System: windows NT
PHP Version: 4.0.4pl1
New Comment:
<a href=http://average-tits-show.da.ru>show
tits</a>
Previous Comments:
------------------------------------------------------------------------
[2001-03-30 17:28:22] joey@php.net
Please try the manual before reporting bugs.
http://php.net/manual/en/function.sybase-affected-rows.php
Note: This function is only available using the CT library interface to
Sybase, and not the DB library.
------------------------------------------------------------------------
[2001-03-30 13:25:03] lingqin at solveinteracive dot com
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 this bug report at http://bugs.php.net/?id=10080&edit=1