Reply to Re: Connecting to mysql with php

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация