armen_98
Эксперт
Дата регистрации:
12.01.2011 16:35:33
Сообщений: 130
Parse error: parse error, unexpected T_VARIABLE in index.php on line 172
151: if($_POST['face_id'] == '1') {
152: $last_name = htmlspecialchars($_POST['last_name']);
153: $first_name = htmlspecialchars($_POST['first_name']);
154: $middle_name = htmlspecialchars($_POST['middle_name']);
155: $birth_day = htmlspecialchars($_POST['birth_day']);
156: $birth_month = htmlspecialchars($_POST['birth_month']);
157: $birth_year = htmlspecialchars($_POST['birth_year']);
158: $passport_series = htmlspecialchars($_POST['passport_series']);
159: $passport_number = htmlspecialchars($_POST['passport_number']);
160: $pass_day = htmlspecialchars($_POST['pass_day']);
161: $pass_month = htmlspecialchars($_POST['pass_month']);
162: $pass_year = htmlspecialchars($_POST['pass_year']);
163: $passport_who = htmlspecialchars($_POST['passport_who']);
164: $post_zip_code = htmlspecialchars($_POST['post_zip_code']);
165: $post_country = htmlspecialchars('Ðîññèÿ');
166: $post_region = htmlspecialchars($_POST['post_region']);
167: $post_city = htmlspecialchars($_POST['post_city']);
168: $post_street = htmlspecialchars($_POST['post_street']);
169: $phone = htmlspecialchars($_POST['phone']);
170: $birth_date = $birth_year."-".$birth_month."-".$birth_day;
171: $pass_give_date = $pass_year."-".$pass_month."-".$pass_day
172: $insdata = "INSERT INTO reg_info (surname, name, mid_name, birth_date, passport_series, passport_number, passport_date, passport_gives, indeks, country, state, city, address, phone)
173: VALUES('$last_name', '$first_name', '$middle_name', '$birth_date', '$passport_series', '$passport_number', '$pass_give_date', '$passport_who', '$post_zip_code', '$post_country', '$post_region', '$post_city', '$post_street', '$phone')";
174: if(!mysql_query($insdata)) {
175: die("CANNOT INSERT DATA INTO TABLE reg_info:".mysql_error());
176: }
177: }