Select query from nested queries

A

Anonymous

Guest
i didnot understand ur words.but here is an answer depend on what i understand..

Code:
<?
$query = "SELECT * FROM structure";
$result = mysql_query($query) or die('<B>ERROR</B>'. mysql_error());
while ($row = mysql_fetch_array($result)){
    $query2 = "SELECT * FROM structure WHERE ladder = ".$row['1st'].";
    $result2 = mysql_query($query2) or die('<B>ERROR</B>'. mysql_error());
//then the 2nd and so on //
}
?>
 
Back
Top