|
Posted by Howard on 02/18/06 00:45
Thanks for the Help to All,
All your code was a lot easier to follow than the books. A lot cleaner.
Begs the question why they wrote it that way??
So It's working and I'm even on to getting phpMyAdmin working to make life
easier.
Howard
"Gary L. Burnore" <gburnore@databasix.com> wrote in message
news:dstmk4$1mt$1@blackhelicopter.databasix.com...
> On Tue, 14 Feb 2006 16:44:19 GMT, "Dave Mennenoh"
> <dave@blurredistinction.com.invalid> wrote:
>
>>>>$query = select * from books where ".$searchtype." like
>>>>'%".$searchterm."%'" ;
>>
>>Besides missing the leading quotation mark, you might like to know that
>>you
>>don't need to do concatenation like this using PHP - so you can simply do
>>this:
>>
>>$query = select * from books where $searchtype like '%$searchterm%'" ;
>
> You have a mismatched double quote. :)
>
>>weird huh!
>
> I always thought so.
> --
> gburnore at DataBasix dot Com
> ---------------------------------------------------------------------------
> How you look depends on where you go.
> ---------------------------------------------------------------------------
> Gary L. Burnore | ۳ݳݳۺݳݳݳݳ۳
> | ۳ݳݳۺݳݳݳݳ۳
> Official .sig, Accept no substitutes. | ۳ݳݳۺݳݳݳݳ۳
> | 0 1 7 2 3 / ݳ 3 7 4 9 3 0 ۳
> Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
> ===========================================================================
[Back to original message]
|