Ver Mensaje Individual
  #10 (permalink)  
Antiguo 06/12/2007, 10:37
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: problemas con PHP para listar datos por fecha

Prueba cambiar esto:
Código PHP:
$sql "SELECT * FROM venta WHERE fecha_venta=$fecha_venta";
$result=mysql_query($sql);
if (
$row mysql_fetch_array($result)){ 
Por esto:
Código PHP:
$sql "SELECT * FROM venta WHERE fecha_venta='$fecha_venta'";
$result=mysql_query($sql) or die( "SQL Error: $sql - " mysql_error() );
if (
mysql_num_rows$result ) > 0){ 
Saludos.