how to merge two sql queries with PHP -


is possible create 2 "mysql_query" , merge them before i'm using: mysql_fetch_array ?

$mainquery_one = mysql_query("select...."); $mainquery_two = mysql_query("select...."); 

you can use multi_query function exact requirement. manual has relevant explanation sample snippet understanding.

to summarize, concatenate 2 query string in single variable , call function variable parameter.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -