Is sql_fetchrowset a phpbb function???

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
itsallgood
Registered User
Posts: 76
Joined: Wed May 05, 2004 8:54 pm

Is sql_fetchrowset a phpbb function???

Post by itsallgood »

Hi guys,

I'm having a go at sql and php without using the phpbb builtinfunctions,

I've been able to do this:

$row=mysql_fetch_row($result)

Which gives me everything one-after-another,

But this doesnt work:

$row=sql_fetchrowset($result)

I really like to be able to use this $row[1]['name'] -- but i cannot seem to do it without phpbb???

How do you count how many results you have using just the mysql_fetch_row($result)???

Thanks so much.

Regards.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

There is no "native" MySQL function to do that, as far as I know. If you look at the db/mysql4.php code you'll see that $db->sql_fetchrowset() is simply calling the "fetch_array" command within a loop and assigning the results to an array.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
Post Reply

Return to “[2.0.x] MOD Writers Discussion”