473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

is there as mysql_ version of mysqli_more_results?


mysqli has mysqli_more_results(). What is the equivalent function in
the older mysql extension?

Jul 17 '05 #1
7 1688
How are you today?

Jul 17 '05 #2
MrKrinkle said the following on 26/06/2005 16:19:
mysqli has mysqli_more_results(). What is the equivalent function in
the older mysql extension?


There isn't one!

MySQLi library has support for multiple queries, hence the need for
mysqli_more_results(). The old MySQL library can't perform multiple
queries, hence no need to find if there are more result sets to obtain.

--
Oli
Jul 17 '05 #3
Darn. So I can't implement Iterator on my mysql query class. Cause I
can't implement valid().

Jul 17 '05 #4
And by the way, there's still a need to find out if there's more
results left even if you're only doing one query. mysql_fetch_assoc()
will give you the next record in the results list. So there would be a
use in knowing "are there any more records in the results list?"

Jul 17 '05 #5
MrKrinkle said the following on 26/06/2005 21:11:
And by the way, there's still a need to find out if there's more
results left even if you're only doing one query. mysql_fetch_assoc()
will give you the next record in the results list. So there would be a
use in knowing "are there any more records in the results list?"


Yes, but that's a fundamentally different thing to finding how many
result *sets* are left, which is what mysqli_more_results() does.

mysql_fetch_assoc() et al. all return FALSE when there are no more rows,
so that's one way of doing this. Alternatively, use mysql_num_rows()
straight after the query, and decrement it every time you fetch a row,
checking for when it reaches zero.

--
Oli
Jul 17 '05 #6
Ah, I'll try the decrement then, thanks.

Jul 17 '05 #7
Ah, I'll try the decrement then, thanks.

Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Manlio Perillo | last post by:
Hi. I'm a new user of Python but I have noted a little problem. Python is a very good language but it is evolving, in particular its library is evolving. This can be a problem when, ad example,...
2
by: j.b.messina | last post by:
This has not yet been published by Microsoft. It will be published within the next few weeks, mainly because I asked them to. I felt this was information badly needed, and I think this is the...
3
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
2
by: Hongbo | last post by:
Hi, I have a web site built in ASP.Net 1.1 running on production server. It's the version 1.0. Now I need to build the version 2.0 for this web site. The version 2.0 will be built based on the...
1
by: Sky | last post by:
Yesterday I was told that GetType(string) should not just be with a Type, but be Type, AssemblyName. Fair enough, get the reason. (Finally!). As long as it doesn't cause tech support problems...
0
by: ev951 | last post by:
I am not that familiar with XML or XSL and I am trying to sort application version number strings in an XML file that my team uses for application installations on our Linux servers. I have tried...
8
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are...
4
by: Bob Altman | last post by:
Hi all, I have a C++/CLI project (VS 2005) that produces a DLL that exports C bindings. Internally, this DLL contains routines compiled with /clr. I notice that my DLL doesn't have a version...
2
by: Jivanmukta | last post by:
Hello, I have little experience in PHP+MySQL programming. I need your help in such problem: how to call stored MySQL function from PHP5 code using mysql_ interface? I failed to find solution in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.