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 > > >

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 pag

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;

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

2011-02-03 Thread Tommy Pham
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; // change this to your need if( !empty($_GE

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

2011-02-03 Thread Bill Mudry
The website I have been working on (as time permits) reports over 15,000 woods. With that much data, an internal search engine has become mandatory for users to find what they are looking for. Almost all the pages are dynamically formed using PHP and data stored in MySQL files. Therefore, a searc