Re: searching

From: Date: Thu, 26 Oct 2000 18:51:06 +0000
Subject: Re: searching
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3968@lists.php.net to get a copy of this message
I'm afraid I'm not quite understand your situation but I think a suitable sql statement might be a solution for your problem. You can check it out from a sql book. This should not be a php problem. Alex > I realitively new to PHP, so some things still trip me out. > > If I have a search function to search for anything in the database, how > would I go about doing it? > > I know I have to > $query = SELECT * FROM my_table; > $result = mysql_results($query, $dbcnx); > > I know I have to loop through the $result, but what should I do to bang up > against the db to search for a string from my input textbox? > > Thanks for the help! > Bryan Fitch > > Bryan Fitch > Programmer > Concept-Factory > http://www.concept-factory.com > bryan@concept-factory.com > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#3968) next »