Thanks for the reply.
The funny thing is that it's been working properly. I have had 200 records already in the database, but it just suddenly stopped working!
The following is the code that writes data to the database when people clicks on the submit button. Any problems with the code?
require("config.php");
//echo "From posted script ";
//echo "Winner :".$winner;
//echo "e_mail :".$e_mail;
$date_now = date('Ymd');
$result = DBquery("INSERT INTO contest1 (winner, e_mail,firstname,lastname,age,country,phone,fav_league,fav_team,ref_email1,ref_email2,newsletter,lang,reg_date)
VALUES ('".$winner."', '".$e_mail."','".$firstname."','".$lastname."','".$age."','".$country."','".$phone."','".$fav_league."','".$fav_team."','".$ref_email1."','".$ref_email2."','".$newsletter."','".$lang."','".$date_now."')");
Thanks