Код:
$sql = "SELECT MAX(id) AS total FROM `users`";
if ( !($result = $db->sql_query($sql)) ) {
die('Could not obtain next user_id information', $sql);
}
if ( !($row = $db->sql_fetchrow($result)) ) {
die('Could not obtain next user_id information', $sql);
}
$id = $row['total'] + 1;
$query = mysql_query("INSERT INTO users (id, username, password, email, date, ip) VALUES('$id', '" . str_replace("\'", "''", $username) . "','" . str_replace("\'", "''", $password) . "','$email', '".time()."', '$ip')");
echo "<br /><b>Поздравления регистрирахте се успешно!</b>";
Parse error: parse error in /home/nom3r1/public_html/register.php on line 40
Ред 40:
die('Could not obtain next user_id information', $sql);