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

Re: [PHP-WIN] Search Engine Problem

2001-10-25 Thread Jim Lucas
what does the code that displays the results look like? jim - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Mark Sweeney" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 3:20 PM Subject: Re: [PHP-WIN] Search En

Re: [PHP-WIN] Search Engine Problem

2001-10-25 Thread DL Neil
I am using this piece of code to display news articles based on the variables inputted by a user. However, it will only display one article, never more, even if more are within the terms of the "WHERE" clause. What am I doing wrong? $search = mysql_query("SELECT news.ID, newstitle, newsdescript

Re: [PHP-WIN] Search Engine

2001-01-10 Thread Toby Butzon
It's not that hard to implement, really... the sifting should all be done by the server... all you have to do is formulate a good query... SELECT * FROM myTable WHERE textField LIKE '%search string%' --Toby - Original Message - From: "IThelp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>