Este es el código:
Código PHP:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$fecha = date ("Y-m-d");
$insertSQL = sprintf("INSERT INTO articles (id, title, icon, content, author, date, category) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['id'], "int"),
GetSQLValueString($_POST['title'], "text"),
GetSQLValueString($_POST['icon'], "text"),
GetSQLValueString($_POST['content'], "text"),
GetSQLValueString($_POST['author'], "text"),
GetSQLValueString($_POST['date'], "date"),
GetSQLValueString($_POST['category'], "text"));
mysql_select_db($database_localhost, $localhost);
$Result1 = mysql_query($insertSQL, $localhost) or die(mysql_error());