You are here: search only certain columns in 1 table using php « PHP SQL « IT news, forums, messages
search only certain columns in 1 table using php

Posted by Mark D. Smith on 06/24/06 16:44

Hi

i want to only do a REGEXP against 4 columns in a table

Job_Title | Job_Description | Job_Salary | Job_Location

i tried $sql = "SELECT * FROM Jobs WHERE (Job_Title, Job_Description,
Job_Salary, Job_Location) REGEXP '$search'"

but its not a valid SQL statement. also tried with WHERE (Job_Title OR
Job_Description OR Job_Salary OR Job_Location)

same problem

mysql is 3.23.56 & php4.3.11

i have googled but not found a solution.

Mark

 

Navigation:

[Reply to this 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

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