Try to change the mysql_query
to show errors meaningfully:
mysql_query($sql, $sql_connection) or die(mysql_error() . "<br/>Query was: " . $sql);
If you have an error, it will stop execution and you will see both the error and the query that was attempted to be executed.
1
solved Why is my PHP is not inserting data into MySQL database? [closed]