Re: [phplib] database abstraction From: Björn Schotte (bjoern <email protected>)
Date: 07/12/00

* Alexander Aulbach wrote:
> As a web-application programmer you are sometimes dependent on a
> numrows()-function, how would you otherwise show the user, how many pages
> the found result has?

As I have written:
 
> }$db->query("select count(*) as numrows from bar");
> }$db->next_record();
> }$numrows = $db->f("numrows");
> }
> }$db->query("select foo from bar");
> }print "We have $numrows rows";
> }while ($db->next_record())

-- 
<?php class new_media_development {
        var $url="http://www.rent-a-phpwizard.de/";
        var $fon="0931/7843792"; var $fax="0931/7843795";
} /* Björn Schotte, "Mr. PHP" */ ?>

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>