Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/11/2008, 10:22
Avatar de hulray
hulray
 
Fecha de Ingreso: septiembre-2006
Mensajes: 630
Antigüedad: 17 años, 8 meses
Puntos: 3
dos select simultaneos

ayudarme plz, no me funciona, el ultimo select, el primero si me funciona...

Código PHP:
<style type="text/css"> 
TD { 
    font-size : 10px; 
    font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; 

</style> 

<?
include_once ("../am_valusu.php");
include_once(
"../am_core/mysql.lib.php");
include_once(
"../am_config.php");
$conn db_connect($config["host"],$config["database"],$config["user"],$config["password"]) or die( db_error() ); 

$proyecto_actual= ("SELECT *, COUNT(*) AS 'ameco' FROM `am_inspeccion` where (ins_estado like 'Q') GROUP BY `ins_proyecto`");
  
$ret      db_query($proyecto_actual) or die(db_error());
  
$num_resp db_num_rows($ret);
     while( 
$row=db_fetch_array($ret) ){
      
$f_proyecto $row["ins_proyecto"]; 
?>

<p>&nbsp;</p>
  <p><strong>Proyecto</strong>:  <em><? echo $f_proyecto?></em> </p>
  
  </p>
  <p>Sr. MANDANTE</p>
  <p>Hay N&deg; <? echo $num_resp?> a espera solicitando su Aprobaci&amp;oacute;n. A contuniaci&oacute;n detalle de las solicitudes: </p>
  <table width="800" border="0">
    <tr>
      <td><div align="center"><strong>Folio</strong></div></td>
      <td><div align="center"><strong>Fecha Solicitud</strong></div></td>
      <td><div align="center"><strong>Equipo</strong></div></td>
      <td><div align="center"><strong>N° Equipo</strong></div></td>
      <td><div align="center"><strong>Nombre contacto </strong></div></td>
      <td><div align="center"><strong>Empresa</strong></div></td>
    </tr>
        <?php 

$proyecto_actual
= ("SELECT * FROM (am_inspeccion,am_rl_equins) where ins_folio=rei_folio order by ins_folio"); 
  
$ret      db_query($proyecto_actual) or die(db_error()); 
  
$num_resp db_num_rows($ret); 
     while( 
$row1=db_fetch_array($ret) ){ 
   
$mensaje=""
  
// while( $row1=db_fetch_array($resultado) ){

      
$i             $row1["ins_folio"]; 
      
$nombre        $row1["ins_nomcon"]; 
      
$empresa       $row1["ins_nomemp"]; 
      
$equipo        $row1["rei_nomequ"]; 
      
$estado            $row1["ins_estado"]; 

   

$mensaje='
  <tr> 
    <td width=\"11%\"> ' 
$i '<br></td> 
    <td width=\"24%\"> ' 
$empresa '</td> 
    <td width=\"39%\"> ' 
$equipo '</td> 
    <td width=\"26%\"> ' 
$nombre '</td> 
  </tr> 
'
;
}
}
    
?>
  </table>
muchas gracias