Re: jpgraph and mysql passing array

From: Date: Sun, 27 Mar 2011 02:44:52 +0000
Subject: Re: jpgraph and mysql passing array
Groups: php.db 
Request: Send a blank email to php-db+get-47737@lists.php.net to get a copy of this message
Would you try an experiment? In this line: $sql = ("SELECT * FROM evdobanding WHERE Market like '%$term' and Cell_Sect = '$term2' and Date = '$term3' ORDER BY distance asc"); Change to: $sql = "SELECT * FROM evdobanding WHERE Market like '%".$term."' and Cell_Sect = '".$term2."' and Date = '".$term3."' ORDER BY distance asc"; That is, remove the parenthesis and concatenate the variables into the string.

« previous php.db (#47737) next »