mysqli_connect($host, $db_name, $user, $pass)
or die('error connect to DB server');
$query = "INSERT INTO aliens_abduction (first_name, last_name, ".
"when_it_happened, how_long, how_many, alien_description, ".
"what_they_did, fang_spotted, other, email) " .
"VALUES ('jack', 'Hack', ''1 day', '4 days', 'six', 'they normal?',".
"'we talking about garbage in the oucean', 'i saw your dog', 'email@ya.ru')";
$result = mysqli_query($dbc, $query)
or die('Error');
mysqli_close($dbc);
?>
or die('error connect to DB server'); С этим сообщением умирает у тебя?
Обсуждают сегодня