Tema: Auxilio::::
Ver Mensaje Individual
  #40 (permalink)  
Antiguo 30/09/2010, 13:49
dianays
 
Fecha de Ingreso: agosto-2010
Mensajes: 147
Antigüedad: 13 años, 8 meses
Puntos: 1
Respuesta: Auxilio::::

Aqui reportandome de nuevo... ia ahora si al parecer me quedo, pero quiero AGRADECERLES A TODOS por las aportaciones... es grato poder contar con personas como ustedes...

Bueno aqui les dejo la consulta correcta para que puedan checarlo...

Código PHP:
Ver original
  1. <?php
  2. if (isset($_POST["ACEPTAR"])){
  3. $ART=$_POST["ART"];
  4. $mil=$_POST["mil"];
  5. $mes=$_POST["mes"];
  6. $dia=$_POST["dia"];
  7. $fecha=$mil."-".$mes."-".$dia;
  8. $mil2=$_POST["mil2"];
  9. $mes2=$_POST["mes2"];
  10. $dia2=$_POST["dia2"];
  11. $fecha2=$mil2."-".$mes2."-".$dia2;
  12. $ART_SEL=mysql_query
  13. ("SELECT folio, fecha, unidad, nombre
  14. FROM reporte, usuarios, unidades
  15. WHERE usuarios.id_nom= reporte.id_nom
  16. AND unidades.id_unidad=reporte.id_unidad
  17. AND reporte.id_nom=$ART
  18. AND reporte.fecha BETWEEN '$fecha' AND '$fecha2'");
  19. $error=mysql_error($CONEXION); echo $error;
  20. $fila=mysql_fetch_array($ART_SEL);
  21. if(mysql_num_rows($ART_SEL)){
  22. echo "<table width='800' border='1' align='center'>
  23. <tr>
  24. <th width='center' scope='col'>FOLIO</th>
  25. <th width='center' scope='col'>FECHA</th>
  26. <th width='center' scope='col'>UNIDAD</th>
  27. <th width='center' scope='col'>ATENDIDO POR</th>
  28. </tr>
  29. <tr>
  30. <td>".$fila['folio']."</td>
  31. <td>".$fila['fecha']."</td>
  32. <td>".$fila['unidad']."</td>
  33. <td>".$fila['nombre']."</td>
  34. </tr>
  35. </table>";
  36. }
  37. else{
  38. echo "<div class='Estilo2' align='center'>No existe Reporte</div>";
  39. }
  40. }
  41. ?>

CASO: RESUELTO!!!!! GRACIAS!!!