Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/07/2010, 02:42
Avatar de shakaran
shakaran
 
Fecha de Ingreso: agosto-2005
Ubicación: España - Ciudad Real
Mensajes: 374
Antigüedad: 18 años, 8 meses
Puntos: 7
Respuesta: Script para modificar datos de un campo automaticamente (No en formulario)

Vaya, ahora si te pillo onda. Mira esto a ver:

Código PHP:
Ver original
  1. $res = mysql_query("SELECT * FROM table") or die(mysql_error());
  2. while($row = mysql_fetch_array($res))
  3. {
  4.     mysql_query("UPDATE table SET fecha='".strtotime($row['fecha'])."' WHERE id='".$row['id']."'", $dbh)
  5.     or die(mysql_error());
  6. }
__________________
Quijost Backend Engineer - www.quijost.com - Hosting rápido, eficiente y profesional
Blog: www.shakaran.net