Re: Capturing a sql query

From: Date: Thu, 30 Sep 2004 17:22:10 +0000
Subject: Re: Capturing a sql query
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36489@lists.php.net to get a copy of this message
Trying to set this up and have a question: Example below , the example for state. The field name is s_LocationState The variable is set to state. $State = ""; // check any item is selected if (count($s_LocationState) > 0 AND is_array($s_LocationState)) { $State = "'".implode("','", $s_LocationState)."'"; So in this example, which should be the keywords, and I'm thinking it probably doesn't matter. The s_fields though are more parameters then variables. ?? > $searchQuery = array(); > $searchQuery["Keywords"]= $_POST["keyword"]; > $searchQuery["JobCategory"]= $_POST["category"]; > $searchQuery["Pay"]=$_POST["pay"]; Thank you , Stuart --- M Saleh EG <m.saleh.eg@gmail.com> wrote: > I'd recommand u to use a serialized variable saved > in ur database. > As in the an array of keywords saved in an > serialized variable once > the form is submited to save the query. > e.g. > $searchQuery = array(); > $searchQuery["Keywords"]= $_POST["keyword"]; > $searchQuery["JobCategory"]= $_POST["category"]; > $searchQuery["Pay"]=$_POST["pay"]; > ... > ... > ... > $s_sq=serialize($searchQuery); > > then save $s_sq into ur DB. >

« previous php.db (#36489) next »