ciao a tutti
vorrei utilizzare 2 query annidate, in questo modo
il problema è che l'arry "res" riusulta sovrascrittocodice:$sql1="SELECT........"; if(!$result = $db->query($sql)) die('There was an error running the query [' . $db->error . ']'); while($row = $result->fetch_assoc()){ $sql2="SELECT........"; if(!$result = $db->query($sql)) die('There was an error running the query [' . $db->error . ']'); while($row = $result->fetch_assoc()){ ........Utilizzare qui i risultati di sql2 } Utilizzare qui i risultati di sql1 }
come posso risolvere?

Rispondi quotando