php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12348 Call to undefined function: mssql_next_result()
Submitted: 2001-07-24 14:24 UTC Modified: 2002-06-02 14:11 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: glenn at websiteresults dot com Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 4.0.6 OS: linux 7.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-07-24 14:24 UTC] glenn at websiteresults dot com
<?
if (connect_db($ip, $db)) {
    $q = "exec $sp @date='$date'";
    $results = mssql_query($q);
    $max = mssql_num_fields($results);
    for ($f=0; $f < $max; $f++) {
        $name = mssql_fetch_field($results, $f);
        print $name->name ."<br>";
    }
    // this is the problem ??? the sp has 2 result sets 
    // i am trying to get to the second set.
    mssql_next_result($results);
}
?>

// config line

./configure \
--with-mysql \
--with-mhash \
--with-sybase=/usr/local/freetds \
--with-apache=../apache_1.3.20 \
--enable-versioning \
--disable-debug \
--enable-debug=no \
--enable-sigchild \
--enable-calendar \
--enable-trans-sid \
--disable-xml

// other info

i am runnong freetds v.0.51 connecting to sql2000

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-24 14:26 UTC] andy@php.net
could you post the exact error message, or put the script
on the internet so I can view it.
 [2001-07-24 16:45 UTC] glenn at websiteresults dot com
the issue is i am using the sybase C files and the function is for the mssql C files.  I am working with a coworker to rewrite the sybase C files to support the mssql_next_result function.  If you have a version that does please let me know and if we get this to work i will give you the C files for the next release.

// error
Fatal error: Call to undefined function: mssql_next_result() in /usr/local/apache/htdocs/reporting/reports/rpttrafficdetailsbycpc.dll on line 12



 [2001-07-24 17:18 UTC] andy@php.net
please send your patch (when you are done) to
php-dev@lists.php.net
 [2001-07-24 18:37 UTC] glenn at websiteresults dot com
We do have a patch that you can roll out in your next release i will send in soon after removing junk comments.
 [2001-07-24 19:11 UTC] fmk@php.net
Please notice that the FreeTDS stuff might be broken for SQL Server 2000 and up.
 [2002-01-14 20:29 UTC] misha at tmolp dot com
having the same problem. would like to get it fixed asap. is there a patch/fix/workaround. thank you.
 [2002-06-02 14:11 UTC] derick@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC