или этот код правильный?
<?
include('db.php');
if ($_POST) { // Принимаем новые записи
$name = $GLOBALS['MySQL']->escape(strip_tags($_POST['name']));
$number = $GLOBALS['MySQL']->escape(strip_tags($_POST['number']));
$email = $GLOBALS['MySQL']->escape(strip_tags($_POST['email']));
$by = $GLOBALS['MySQL']->escape(strip_tags($_POST['by']));
$name2 = $GLOBALS['MySQL']->escape(strip_tags($_POST['name2']));
$number2 = $GLOBALS['MySQL']->escape(strip_tags($_POST['number2']));
$old = $GLOBALS['MySQL']->escape(strip_tags($_POST['old']));
$pol = $GLOBALS['MySQL']->escape(strip_tags($_POST['pol']));
$gorod = $GLOBALS['MySQL']->escape(strip_tags($_POST['gorod']));
$raion = $GLOBALS['MySQL']->escape(strip_tags($_POST['raion']));
$adress = $GLOBALS['MySQL']->escape(strip_tags($_POST['adress']));
$postcode = $GLOBALS['MySQL']->escape(strip_tags($_POST['postcode']));
// Можно добавлять комментарий
$GLOBALS['MySQL']->res("INSERT INTO `zapros` SET
`name` = '{$name}',
`number` = '{$number}',
`email` = '{$email}',
`by` = '{$by}',
`name2` = '{$name2}',
`number2` = '{$number2}',
`old` = '{$old}',
`pol` = '{$pol}',
`gorod` = '{$gorod}',
`raion` = '{$raion}',
`adress` = '{$adress}',
`postcode` = '{$postcode}'
");
}
mysql_query($query) or die(mysql_error());
mysql_close();
?>