Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/01/2011, 22:10
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 16 años, 1 mes
Puntos: 21
Ayuda hacer función con update

Estoy intentando con este código pero no funciona:

Código PHP:
Ver original
  1. function actualizar($values){
  2.     mysql_query("UPDATE detalles SET $values, id='$ID' WHERE id = '$ID'", $link) or die(mysql_error());
  3. }
  4.  
  5.  
  6. if (!empty($titulo)) {
  7. actualizar("title='$titulo'");
  8. }