Re: Basic SQL syntax

From: Date: Mon, 15 Jan 2001 22:42:01 +0000
Subject: Re: Basic SQL syntax
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-34708@lists.php.net to get a copy of this message
""Johannes Janson"" <johannes.janson@gmx.de> wrote in message news:93vs9u$osj$1@toye.p.sourceforge.net... > try this: > $sql = "SELECT * FROM table > WHERE town LIKE '%$search_data%' "; > > if ($reference != "") > $sql .= "OR whatever"; Ah, so you can constantiate (right word?) the query? Cool, Thanks ;) James.

« previous php.general (#34708) next »