While Mysql loop inside while loop two or Multiple php

Description

Php Mysql while loop inside while loop php two three 2, 3Multiple While Loops used in php mysql While Loop  While Loops in PHP while loop syntax in while loop in table. How to find common row result in php mysql

Another query and then a while loop used in  mysql_fetch_array how to find common row result in php mysql

How can Get common values from two while loop with mysql query php in a table Fetch a result row as an associative array, a numeric array

Retrieving mysql php Records from Multiple Tables mysql

<?php

$techwiteachtech=mysql_query("SELECT DISTINCT selecttime, selectteacher FROM selectableadd where date = '".$todayrepo."' and selectteacherid = '".$seleteacherid."' order by selecttimeid asc");

while($techwiseteacher=mysql_fetch_array($techwiteachtech)){

$selectroomid = $techwiseteacher['selectroomid'];

 

$techwiteachtechdda = mysql_query("SELECT * FROM managebatchtimeadd where roomidlist = '".$selectroomid."' ");

while($techwicddersbr=mysql_fetch_array($techwiteachtechdda)){

  $managelist = $techwicddersbr['managebatchid'];

$techwicddda = mysql_query("SELECT * FROM manageadminbatchlist where batchcode = '".$managelist."' ");

$checknonn = mysql_num_rows($techwicddda);

//echo $checknonn;

while($techwicddersbra=mysql_fetch_array($techwicddda)){

echo $techwicddersbra['adminid'];

echo $techwicddersbra['batchcode'];

   } // 3rd while

} // 2nd while

 

 

}  // first while

?>