ho provato con la sua originale ma nulla.
Codice PHP:function updateProperty($data,$table,$val){
if(is_array($properties))
{
$i=1;
$query = "UPDATE `".$table."` SET ";
foreach($properties AS $k => $v)
{
$query .= "`".$this->escape($k)."` = '".$this->escape($v)."'".(($i++ < count($properties)) ? ', ' : ' ');
}
$query .= "WHERE `".$val."` = '".$val."'";
return mysql_query($query, $this->dbConn);
}
else
return false;
}

Rispondi quotando