Ver Mensaje Individual
  #10 (permalink)  
Antiguo 03/12/2008, 12:21
Avatar de farra
farra
 
Fecha de Ingreso: marzo-2008
Ubicación: Aqui estoy
Mensajes: 574
Antigüedad: 16 años, 2 meses
Puntos: 20
De acuerdo Respuesta: cambiar fecha normal formato DD-MM-YYYY a formato para mysql 'YYYY-MM-DD'

Código PHP:
<?php

include('conexion.php'); 
$fin=date("d/m/Y"strtotime($_POST['date']));
$date=date("d/m/Y"strtotime($_POST['date2']));

$sql="select p.producto, ddv.cantidad,ddv.Precio_venta,dv.Fechave...from detalledocventa ddv, docventa dv,producto pwhere ddv.IdProducto=p.IdProducto and ddv.iddocventa=dv.iddocventa and Fechaventa between $fin and $date";

//echo $sql;

$res=mysql_query($sql);while($row=mysql_fetch_array($res)){

echo 
$row[0];echo "<tr><td>".$row[0]."</td><td>".$row[1]."...




?>
prueba asi....
__________________
Firma:
Es mas dificil para el mono entender que el hombre desciende de el....

PD: Siempre doy karma al que me da una buena respuesta... ;0)