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