Максимальный размер поля "Увлечения / хобби" - '.$maxsimbols.' символов.
';
}elseif(mysql_query("UPDATE
`users`
SET
`design` = '".$u->info['design']."',
`name` = '".mysql_real_escape_string($_POST['name'])."',
`city_real` = '".mysql_real_escape_string($_POST['city2'])."',
`icq` = '".mysql_real_escape_string((int)$_POST['icq'])."',
`icq_hide` = '".mysql_real_escape_string($_POST['hide_icq'])."',
`skype` = '".mysql_real_escape_string($_POST['skype'])."',
`skype_hide` = '".mysql_real_escape_string($_POST['hide_skype'])."',
`homepage` = '".mysql_real_escape_string($_POST['homepage'])."',
".$dateofbirth."
`deviz` = '".mysql_real_escape_string($_POST['about'])."',
`hobby` = '".mysql_real_escape_string($_POST['hobby'])."',
`chatColor` = '".mysql_real_escape_string($_POST['ChatColor'])."',
`mat` = '".mysql_real_escape_string((int)$_POST['mat'])."'
WHERE
`id` = '".mysql_real_escape_string($u->info['id'])."' LIMIT 1;"))
{echo 'Все прошло удачно...
';
if( $u->info['design'] != $lastdes ) {
echo '';
}
$u->info['name'] = $_POST['name'];
$u->info['city_real'] = $city;
$u->info['icq'] = $_POST['icq'];
$u->info['icq_hide'] = $_POST['hide_icq'];
$u->info['skype'] = $_POST['skype'];
$u->info['skype_hide'] = $_POST['hide_skype'];
$u->info['homepage'] = $_POST['homepage'];
$u->info['deviz'] = $_POST['about'];
$u->info['hobby'] = $_POST['hobby'];
$u->info['chatColor'] = $_POST['ChatColor'];
$u->info['mat'] = $_POST['mat'];
}
else{echo 'что-то не так...';}
}
?>