RE: [PHP-WIN] Search engine won't page properly

2011-02-04 Thread Tommy Pham
> -Original Message- > From: Tommy Pham [mailto:tommy...@gmail.com] > Sent: Friday, February 04, 2011 4:21 PM > To: 'Bill Mudry' > Cc: 'php-windows@lists.php.net' > Subject: RE: [PHP-WIN] Search engine won't page properly > > > $result = mysql_query( $sqlSearchCount ); $totalRows = > >

RE: [PHP-WIN] Search engine won't page properly

2011-02-04 Thread Tommy Pham
> -Original Message- > From: Tommy Pham [mailto:tommy...@gmail.com] > Sent: Friday, February 04, 2011 3:49 PM > To: 'Bill Mudry' > Cc: 'php-windows@lists.php.net' > Subject: RE: [PHP-WIN] Search engine won't page properly > > > Previously, > > > [CODE] > > > > > > > > > >

RE: [PHP-WIN] Search engine won't page properly

2011-02-04 Thread Tommy Pham
Previously, > [CODE] > > > //$s = 14; hard coded as a debug statement > $S= @$_GET['$s'] ; With the above, PHP is looking for the GET parameter name $s, not the value of $s as the the GET parameter name. If you want the latter, change it to $_GET[$s]. IIRC, PHP is n

RE: [PHP-WIN] Search engine won't page properly

2011-02-04 Thread Bill Mudry
At 12:11 AM 04/02/2011, Tommy Pham wrote: Bill, That's a lot of reading ... Anyway, this seems to be a 'general' PHP question. If I understood you correctly, you're having problem getting PHP to page the SQL results? If so, look the below code logic and adapt as necessary: $numOfResults = 10;