In my code I'm trying to accept input through a webpage from the user and create SQL query by dynamically creating where clause based on the input from the user. However it looks like I'm unable to correctly concatenate strings.
$whereclause .= "AND niche ='".$niche."'";
$result = mysql_query("SELECT * FROM merc WHERE 1 = 1".$whereclause."") or die('Could not connect: ' . mysql_error());