RE: [PHP] Re: database question

From: Date: Thu, 29 Nov 2001 12:59:12 +0000
Subject: RE: [PHP] Re: database question
Groups: php.general 
Request: Send a blank email to php-general+get-76029@lists.php.net to get a copy of this message
and what about this ... $sql = "SELECT a_column FROM table WHERE text_column LIKE '% $word %'; matching the word in the text ... $sql = "SELECT a_column FROM table WHERE text_column LIKE '$word %'; matching the word at the begining of the text ... $sql = "SELECT a_column FROM table WHERE text_column LIKE '% $word'; matching the word at the end of the text ... > > > $word = 'bingo'; > > $sql = "SELECT a_column FROM table WHERE text_column LIKE '%$word%'; > > $res = mysql_query($sql); > > // etc... for displaying results

« previous php.general (#76029) next »