Re: [pear-webmaster] Found, but having problems.
| From: | Tomas V.V.Cox | Date: | Tue, 21 Aug 2001 22:42:08 +0000 |
| Subject: | Re: [pear-webmaster] Found, but having problems. | ||
| References: | 1 2 3 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-9@lists.php.net to get a copy of this message | ||
"Inércia Sensorial Trabalhando" wrote:
>
> Hi Thomas.
>
> I am trying to use the Pager.php but these lines are not working:
>
> while ($row = $pager->fetchRow(DB_FETCHMODE_ASSOC)){
> echo $row['nome'] . "\n";
> }
Isn't $row['name'] what you're trying to access? Do a print_r($row) to
see if $row contains data or not.
> The total of records are show (2), but not a field from my Mysql database.
>
> Here's the output (I just added a few <br>'s to see it better). As you can
> see, the column 'nome' is not appearing:
>
> 2 Results found
> Page 1 of 1
> 10 results per page
> 0 next->
> 1
>
>
> I am calling the page directly, withou any parameters, like
> 'http://www.example.com/teste.php'.
>
> Any advice?
>
There were a problem with the Pear DB mysql extension and row num == 0
(a fail of mine), please be sure you have a recent version of it.
Tomas V.V.Cox
PS.- If you still have problems please send directly to me the code you
are trying.