MySQL Union Query not returning expected result, -
mysql query returns second select results in union , have no idea why...can plz help?
$query = "select name "; $query .= "from nutrients "; $query .= "where name '%{$sqlsafe_query}%' "; $query .= "limit 30 "; $query .= "union "; $query = "select name "; $query .= "from supplements "; $query .= "where name '%{$sqlsafe_query}%' "; $query .= "limit 30";
$query = "select name ";
are lack of . before =?
Comments
Post a Comment