php + sql search
buu at buu.cc
Thu Oct 31 15:17:17 GMT 2002
U have to parse the input data OR maybe there are some sql functions u can
use... i'm not sure on that and i'll check later on (sql server has them...
dunno if mysql).
Ill reply in about 3 hours since now i have to go to the police =/ bha eheh
----- Original Message -----
From: "Robin Garbutt" <rob at portfoliodesign.net>
To: "Freebsd Forum" <freebsd-users at uk.freebsd.org>
Sent: Thursday, October 31, 2002 2:35 PM
Subject: php + sql search
> Hi all,
> I want to be able to query by mysql db with a boolean search.
> at the mo I have:-
> $result = mysql_query("SELECT * FROM db WHERE name LIKE '%$name%'", $db);
> $query_data = mysql_fetch_array($result)
> ideally I would like to be able to type in the search box "something +
> something" to search db with queries like. Eg. "cat + dog" to return all
> listings containing the words cat and dog.
> has anyone any ideas?
> many thanks in advance!
> Robin Garbutt
> Portfolio Art & Design Ltd
> Tel - +44 (0) 1204 383822
> Fax - +44 (0) 1204 383866
> Mob - +44 (0) 7811 185490
> e-mail - Rob at portfoliodesign.net
> For further information please visit us at :-
> The contents of this e-mail are confidential to the ordinary user of the
> e-mail address to which it was addressed and may also be privileged. If
> are not the addressee of this e-mail you may not copy, forward, disclose
> otherwise use it or any part of it in any form whatsoever. If you have
> received this e-mail in error please e-mail the sender.
> ------ FreeBSD UK Users' Group - Mailing List ------
More information about the Ukfreebsd