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

Popular posts from this blog

java - Unable to make sub reports with Jasper -

Save and close a word document by giving a name in R -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -