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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -