PHPのエラーについて
<?php
session_start();
require('../dbconnect.php');
if (!isset($_SESSION['join'])) {
header('Loction: index.php');
}
if (!empty($_POST)) {
//登録処理
$sql = sprintf('INSERT INTO test_users SET
name="%s", email="%s", password="%s", created="%s"',
mysql_real_escape_string($_SESSION['join']['name']),
mysql_real_escape_string($_SESSION['join']['email'],
mysql_real_escape_string(sha1($_SESSION['join']['password'])),
date('Y-m-d H:i:s'));
mysqli_query($sql) or die(mysqli_error());
var_dump($sql);
unset($_SESSION['join']);
header('Location: thanks.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
</head>
<body>
<form action="" method="post">
<input type="hidden" name="action" value="submit">
<div><a href="index.php?action=rewrite">« 書き直す</a>
<input type="submit" value="登録">
</div>
</form>
</html>
これを実行すると
Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/****/www/join2/check.php on line 15
Parse error: syntax error, unexpected ';' in /home/kazu94/www/join2/check.php on line 15
このようなエラーがでます(汗
どこが間違っているのか教えてください(泣
補足
実はアジア地域に使うつもりで、多言語(英語、韓国語、中国繁体語)対応のものを探しています。ご助言できれば。(自社サーバーも、テストサーバーも持っています)