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

Hice estas correcciones y tampoco actualiza:

Código PHP:
Ver original
  1. function actualizar($tabla, $value1, $value2, $where){
  2.     return "UPDATE $tabla SET $value1, $value2 WHERE $where";
  3. }
  4.  
  5. if (!empty($titulo)) {
  6. actualizar("detalles", "title='$titulo'", "id='$ID'", "id = '$ID'");
  7. }