I am trying to update a table query UTF8 using a form. Its displays in form but not able to edit. Please let me know what the fault in query?
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
require_once("./includeadmin/membersite_config.php");
require_once("./includeadmin/membersite_config_editorial.php");
include("database1.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("index.php");
exit;
}
$idi = $_POST['id2'];
$sql = mysql_connect("localhost","username","password");
if (!$sql) {
die ('Could not connect!: ' . mysql_error());
}
mysql_select_db("nam33_articles", $sql);
mysql_query("UPDATE editorial SET date = '$_POST[date]', tag =
'$_POST[tag]', title = '$_POST[title]', small = '$_POST[small]', image =
'$_POST[image]', smallimage = '$_POST[smallimage]', english =
'$_POST[english]', full = '$_POST[full]') WHERE id_user = '$idi'");
?>