Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/11/2003, 11:25
nancyBB
 
Fecha de Ingreso: octubre-2003
Mensajes: 37
Antigüedad: 20 años, 6 meses
Puntos: 0
Código PHP:

$sql 
"select fecha_ing from proyecto where id_proy=26;";
$result mysql_query("$sql");
$row=mysql_fetch_array($result);

$hoydate("Y-m-d");
$ing$row["fecha_ing"];
echo 
$hoy.'<br>'.$ing.'<br>';
echo 
date("W",strtotime($hoy))-date("W",strtotime($ing)); 
Con eso debe funcionarte