Re: [pear-webmaster] Found, but having problems.

From: Date: Wed, 22 Aug 2001 12:49:29 +0000
Subject: Re: [pear-webmaster] Found, but having problems.
References: 1 2 3 4  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-10@lists.php.net to get a copy of this message
Okay Thomas, thanks for your help. It worked when I downloaded a newer version of the mysql.php file from pear's db directory. Again, thanks. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Tomas V.V.Cox" <cox@idecnet.com> wrote in message news:3B82E3C0.840B24B6@idecnet.com... > "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.

« previous php.pear.webmaster (#10) next »