Ver Mensaje Individual
  #9 (permalink)  
Antiguo 09/03/2008, 11:48
skull_
 
Fecha de Ingreso: marzo-2008
Ubicación: Madrid
Mensajes: 35
Antigüedad: 16 años, 1 mes
Puntos: 0
Re: Fecha semiautomatica...¿como lo puedo hacer?

esto tengo y no me funciona:

Código PHP:
<?php mysql_select_db($bd,$cnn);
            
$tiempo time();
            if ( 
date("m"$time) == '03' 
            {
             
// Tomamos los datos de la fecha...
             
$fdevoluciondate("Y-m-d"$time);  
            } ;
            
$sSQL="SELECT importe FROM alquileres WHERE fdevolucion='$fdevolucion'";
            
$res=mysql_query($sSQL,$cnn) or die (mysql_error());
            for (
$cnt=0;$cnt<mysql_num_rows($res);$cnt++){
            
$row=mysql_fetch_assoc($res);
            
//$row['fdevolucion'];
            
$row['importe'];
            
//$importe=0;
            
$importe = ($importe $row['importe']);
            }
            echo 
$importe "€";?>
alquien ve un fallo?