SQL Query doesn't get executed
===

I'm trying to make a very basic comment system in PHP.
The problem is that when I submit the form, the new row doesn't get inserted in my MySQL table.
This is my code (, could someone please check what's wrong?):

    <?php
    $act = $_POST['act'];
    if($act == 1) {
    	$m = $_POST['message'];
    	$m = strip_tags($m);
    	$message = mysql_real_escape_string($m);
    	$name = "Anonymous"; //Static username for demonstration purposes
    	$date = "2012-7-28"; //Static date for demonstration purposes
    	
    	$con = mysql_connect("localhost","username","password");
    	if (!$con){die('Could not connect: ' . mysql_error());}
    	
    	mysql_query("INSERT INTO comments (name, message, date) VALUES ('$name', '$message', '$date')");
    	mysql_close($con);
    }
    ?>
    
    <form action="comments.php" method="post"> 
    	<input type="text" name="message">
    	<input type="hidden" name="act" value="1">
    	<input type="submit" name="submit" value="Submit">
    </form>