Hi everyone,
I am new to MySQL and php and I just wondered if anyone can help me out a little. I am creating a database to store my photo's and a few bits of information as well. At the moment I have the following query for searching:
mysql_query("SELECT * from photo WHERE 1 and (place LIKE '$search') OR (type LIKE '$search') OR (airline LIKE '$search') OR (reg LIKE '$search') OR (date LIKE '$search') OR (notes LIKE '$search')");
which as the experts among you will realise it returns an answer from my sql when one of the the field values = the search variable.
So at the moment if somebody typed "Britannia Airways AB" it would come out true, but if somebody typed in just "Britannia" it would not be recognised. Can somebody let me know how I can get a true response for this search.
Hope I have explained it OK,
Thanks in advance,
Danny Hill