Ver Mensaje Individual
  #34 (permalink)  
Antiguo 09/05/2013, 11:34
alex1084
 
Fecha de Ingreso: abril-2008
Ubicación: El Salvador
Mensajes: 736
Antigüedad: 16 años
Puntos: 47
Respuesta: Comparar si una fecha ingresada es igual a la de la base de datos

Mira con este cambio debería funcionarte sin problemas

Código PHP:
Ver original
  1. <?php
  2. if(isset($_GET['fechareg'])){
  3.     $where = "WHERE fechareg= '".$_GET['fechareg']."'";
  4. }else{ $where = ""; }
  5. include("conexion.php");
  6. $consulta=("SELECT * FROM dato_empresa ".$where." ORDER BY empresa ");
  7. $datos=mysql_query($consulta,$conexion);
  8. $num_rows=mysql_num_rows($datos);
  9. ?>