Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/09/2010, 11:29
Avatar de ylellan
ylellan
 
Fecha de Ingreso: mayo-2010
Ubicación: en un lugar de Veracruz
Mensajes: 432
Antigüedad: 14 años
Puntos: 36
Respuesta: Ayuda!!! Consulta de Fecha en PHP

ahora si, q eso no solo debes de mandarlo a una consulta?

Código PHP:
<?php
if(iseet($_POST["ACEPTAR"])){
$usuario=$_POST["usuario"];
$mil=$_POST["mil"];
$mes=$_POST["mes"];
$dia=$_POST["dia"];
$fecha=$mil."-".$mes."-".$dia;
$ART_SEL=mysql_query("select folio, fecha, hora, unidad, nombre from reporte where id_nom='$usuario' and reporte.fecha='$fecha") or die ("error:".mysql_error());

$fila=mysql_fetch_array($ART_SEL);
$num=mysql_num_rows($ART_SEL)
if(
$num>0){

echo 
"<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>
<tr>
<td>"
.$fila['folio']."</td>
<td>"
.$fila['fecha']."</td>
<td>"
.$fila['hora']."</td>
<td>"
.$fila['unidad']."</td>
<td>"
.$fila['nombre']."</td>
</tr>
</table>"
;
}
else
{
echo 
'<script>alert("no existen datos");history.back(-1);</script>';
}