150) {
echo "Hiba! Maximum 150 karakter lehet az üzenet.";
die;
}
if($author_length > 150) {
echo "Hiba! Maximum 150 karakter lehet a név.";
die;
}
mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());
$date = date("h:i A dS M");
$query = "INSERT INTO shoutbox (message, author, email, date, ip)
VALUES ('$message','$author','$email','$date','$_SERVER[REMOTE_ADDR]')";
mysql_query($query);
mysql_close();
echo "Üzenet elküldve, köszönjük ";
echo "V I S S Z A";
} else {
mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());
$query = "SELECT message, author, email, date, ip
FROM shoutbox order by id DESC LIMIT 10";
$result = mysql_query($query);
echo "