我有错误 解析错误:语法错误,意外';'在第12行 一开始看一切都还可以。 任何想法?
<?php
require_once('include/session.inc.php');
require_once('include/dbcon.php');
if (!isset($_SESSION['user_id'])) {
header ('Location: /index.php');
}
echo $_SESSION['user_id'];
$query = mysqli_query ($mysqli, "SELECT * FROM wants WHERE user_id='$_SESSION[user_id]'";
$minda_arr= mysqli_fetch_row ($query);
$query=mysqli_query($mysqli, "SELECT * FROM offer WHERE user_id='$_SESSION[user_id]'");
$ar_minda_arr = mysqli_fetch_row($query);
$logo_align="1";
?>
答案 0 :(得分:0)
该行
$query = mysqli_query ($mysqli,
"SELECT * FROM wants WHERE user_id='$_SESSION[user_id]'";
缺少尾随)
,即
$query = mysqli_query ($mysqli,
"SELECT * FROM wants WHERE user_id='$_SESSION[user_id]'");