Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/02/2010, 11:14
NaikiOwned
 
Fecha de Ingreso: agosto-2009
Mensajes: 110
Antigüedad: 15 años, 5 meses
Puntos: 1
Respuesta: dos mysql_fetch_array(sql1),mysql_fetch_array(sql2) en un mismo while() ??

esto de aqui n.n

Código PHP:
require('Connections/db-cnx.php');
if(isset(
$_GET['not_ID'])){
   
$not_ID $_GET['not_ID'];
   
//select t1.campo1, t2.campo2, campoN from tabla1 t1 inner join tabla2 t2 on t1.campoCoincidente = t2.campoCoincidente
   
$sqlQueryNot mysql_query("SELECT * from apuesta
                               WHERE not_ID = $not_ID"
$db_link)
                               or die(
mysql_error);
   
$sqlQueryNot2 mysql_query("SELECT * from equipos"$db_link)
                               or die(
mysql_error);
                               
   while(
$rowNot mysql_fetch_array($sqlQueryNot) and $rowNot2 mysql_fetch_array($sqlQueryNot2) ){
       echo 
$rowNot['nombres'];
       echo 
$rowNot2['fechas'];
       


}
}else{
   echo 
"Error...imposible leer la base de datos!";