Jump to content

~~mysql -->(form+serach) ...help me~~


ahmed17

Recommended Posts

[quote author=fenway link=topic=107268.msg430121#msg430121 date=1157659710]
I'm not exactly what application this is for, but there are plenty of tutorials that covers the basics of PHP/MySQL. 
[/quote]

i'll second that. you're really asking about several different things here, and the majority of what you're asking would be best answered in the PHP forum. you should break down what you're after into bite-sized pieces and try to get answers to them a piece at a time.
ok, i'll bite. i'll help you with one piece of the puzzle: the query. if you have a variable that contains the search text, you've got to determine which field(s) you're going to run your match on and then simply use the LIKE comparison to see if you have a match:
[code]
SELECT * FROM tableName WHERE myCol LIKE '%$searchString%';
[/code]

when you run a LIKE with the '%' delimiters, you will return every record where "myCol" column contains the search string somewhere inside it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.