0

Is it possible to create 2 "mysql_query" and merge them together before I'm using: mysql_fetch_array ?

$mainQuery_one = mysql_query("SELECT....");
$mainQuery_two = mysql_query("SELECT....");
9

1 Answer 1

0

You can use multi_query function which for this exact requirement. The manual has all the relevant explanation with the sample snippet for your understanding.

To summarize, concatenate the two query string in a single variable and call the function with this variable as a parameter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.