I have two queries and need to display data from both queries. below is what i did with the first query.
<?php
include 'config/dbconnectorder.php';
$query="SELECT task_order FROM order";
$result=mysqli_query($link, $query);
while($row = mysqli_fetch_array($result)){
?>
<b><?php echo $row['task_order']; ?></b>
<?php } ?>
I need to use below query to display the name of the order
include 'config/dbconnectemployee.php';
$query_emp="SELECT name FROM employee";
$res_emp=mysqli_query($dbemp, $query_emp);
table order
and employee
are from different databases. how can I solve this? Most answers I refer use mysqli_select_db . But i have two different connection for the databases.