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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -