Tema: Auxilio::::
Ver Mensaje Individual
  #43 (permalink)  
Antiguo 01/10/2010, 11:16
Avatar de Nano_
Nano_
 
Fecha de Ingreso: febrero-2006
Ubicación: Bogotá, Colombia
Mensajes: 1.866
Antigüedad: 18 años, 8 meses
Puntos: 96
Respuesta: Auxilio::::

Saludos

Es un erro de logica en el if de $_POST["ACEPTAR"] y te recomiendo utilizar mysql_fetch_array


Código PHP:

<?php
if(isset($_POST["ACEPTAR"])){
$usuario=$_POST["usuario"];
$mil=$_POST["mil"];
$mes=$_POST["mes"];
$dia=$_POST["dia"];
$mil2=$_POST["mil"];
$mes2=$_POST["mes"];
$dia2=$_POST["dia"];
$fecha1=$mil."-".$mes."-".$dia;
$fecha2=$mil2."-".$mes2."-".$dia2;
$ART_SEL=mysql_query ("SELECT * FROM REPORTE")
or die (
"error:".mysql_error());

$num mysql_num_rows($ART_SEL );

 if(
$num>0){ ?>
<table width='800' border='1' align='center'>
<tr>
<th width='90' scope='col'>FOLIO</th>
<th width='66' scope='col'>FECHA</th>
<th width='65' scope='col'>HORA</th>
<th width='69' scope='col'>UNIDAD</th>
<th width='66' scope='col'>NOMBRE</th>
</tr>
<? while ($fila=mysql_fetch_array($ART_SEL)){?>
<tr>
<td><? echo $fila['folio'];?>"
</td> <td><? echo $fila['fecha'];?>"
</td> <td><? echo $fila['hora'];?>"
</td> <td><? echo $fila['unidad'];?>"
</td> <td><? echo $fila['nombre'];?>"
</td>
</tr>
</table>
<? }  } 

}
?>
Pienso que de esta manera ya quedaria ajustado. Cualquier novedad lo comentas

Hasta Pronto!
__________________
:.:Nano.:: @nano_hard - Retornando al foro