Reply to Re: search only certain columns in 1 table using php

Your name:

Reply:


Posted by Mark D. Smith on 06/25/06 19:22

"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:d3ec6$449ec211$8259c69c$19891@news2.tudelft.nl...
> Mark D. Smith wrote:
> > I now have a new test the apply
> >
> > CONCAT(Job_Title, Job_Description, Job_Salary1) REGEXP '$src') works
> > but i need to add a test for where
> >
> > Job_Location ="$loc" ($loc is a number 1 to 19) currently
> >
> > tried
> > WHERE CONCAT(Job_Title, Job_Description, Job_Salary1) REGEXP '$src')
> > AND Job_location ="$loc"
> > but no luck
>
> Echo your query, what does it actually like with the variables?
> It should work, what if you try:
> WHERE Job_location = "$loc"
>
> Does that return any hits?
>
> Grtz,
> --
> Rik Wasmus
>
>
Hi

once i removed the extra ) after $scr'

WHERE CONCAT(Job_Title, Job_Description, Job_Salary1) REGEXP '$src' AND
Job_location ="$loc"

the amount of data in the database is a little limited so the first few
$loc's don't hit but later combination of $loc and $src do.

Thanks again all working as i hoped.

Mark

[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

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