【发布时间】:2018-10-14 18:53:23
【问题描述】:
我正在尝试使用表单更新表查询 UTF8。它以表格形式显示,但无法编辑。请让我知道查询中的错误是什么?
<?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'");
?>
【问题讨论】:
-
它给出任何错误?
-
它没有给出任何错误。表格没有更新。
-
您能否使用我的答案中的查询行并回显它,以便我们得到查询并找到该查询的错误。
-
其所有内容都转换为问号。没有错误显示。已编辑部分成功回显。但所有内容都转换为问号
-
您在输入字段中使用非英语语言吗?