es que esta es mi funcion de hacer mi update
Código PHP:
Ver originalfunction db_update( $table, $values, $filter )
{
if( count($values) == 0 ) return FALSE;
$sql = "update $table set ";
foreach( $values as $name => $value )
{
$sql .= $name." = ";
if( gettype( $value ) == "string" ) {
if( $value == "[null]" )
$sql .= "null, ";
else
$sql .= "'".$value."', ";
}
else
$sql .= $value.", ";
}
if( $filter != "" )
{
$sql .= " where $filter";
}
}
if( !db_update
("users", array( "name" => entry_filter($_REQUEST["edit_name"]),
"password" => entry_filter($_REQUEST["edit_password"]),
"credit" => entry_filter($_REQUEST["edit_credit"]),
"status" => entry_filter($_REQUEST["edit_status"])
),
"username = '".entry_filter($_REQUEST["save"])."'"
) )
{