php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10080 can't call the function sybase_affected_rows() for insert, update and delete
Submitted: 2001-03-30 13:25 UTC Modified: 2001-03-30 17:28 UTC
From: lingqin at solveinteracive dot com Assigned:
Status: Not a bug Package: Sybase (dblib) related
PHP Version: 4.0.4pl1 OS: windows NT
Private report: No CVE-ID: None
 [2001-03-30 13:25 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-30 17:28 UTC] 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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 10:01:27 2019 UTC