$method($row['name'], null, ($type=='girl' ? 2 : 1))); mysql_query("UPDATE {$tablename} SET nameCase='{$res}' WHERE id={$id}"); ?>