Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/07/2007, 08:42
astut
 
Fecha de Ingreso: septiembre-2005
Ubicación: Valencia
Mensajes: 738
Antigüedad: 18 años, 7 meses
Puntos: 5
Mensaje Error en sentencia UPDATE

Hola, me gustaria saber si ven algo mal aqui:
Código PHP:
case "habitaculo":
                if (
$villa_estructuras_cfg_cost_pid_habitaculo<=$recursos[0] and $villa_estructuras_cfg_cost_mad_habitaculo<=$recursos[1])
                {
                    if (
$villa_estructuras_cfg_max_habitaculo$estructuras["habitaculo"]) 
                        
$insertarmysql_query("UPDATE villa_estructuras SET '$_POST[estructura]' = '$_POST[estructura]' + 1 
                                                                        WHERE id= '$_COOKIE[juego_jugador_id]'"
);
                    else
                        
header("location: ../index.php?pagina=estructuras_edificar&proceso=erroneo&descripcion=Ya no puedes edificar mas");
                }
                else
                    
header("location: ../index.php?pagina=estructuras_edificar&proceso=erroneo&descripcion=Recursos insuficientes");
            break; 
Ya que no funciona, el resultado de la sentencia que se almacena en $insertar devuelve error.

Gracias