mysqli - PHP Certification question
I am currently studying towards my Zend PHP certification and have came across this question in my first practice exam:
Consider the following code-snippet, which is taken from a larger application:
Can anyone advise - this is an example of doing what using the new MySQLi extension?
for(/* empty */ ;
if($result = mysqli_store_result($link))
while($row = mysqli_fetch_array($result, MYSQLI_ASSOC))
foreach($row as $value)
The possible answers are:
Performing a multi-query statement
Performing a transaction
Using an unbuffered queries
Using buffered queries
Looks like option #1 to me, "Performing a multi-query statement."
Last edited by Jona; 04-21-2010 at 05:10 PM.
Hint: read up on mysqli::more_results().
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread