已采纳回答 / 谭春霞
因为PHP中,$table本身就是代表变量了,而且单引号将变量括起来就是表示纯字符串,而双引号可以识别变量,为了保险起见,使用{}将变量括起来,就算是单引号也是识别是变量
2017-05-03
已采纳回答 / qq_致美丽的你_0
echo set_include_path(".".PATH_SEPARATOR.ROOT."/lib".PATH_SEPARATOR.ROOT."/core".PATH_SEPARATOR.ROOT."/configs".PATH_SEPARATOR.get_include_path());你就明白了
2017-05-02
<td>
<input type="checkbox" id="c<?php echo $row['id'];?>" class="check">
<label for="c<?php echo $row['id'];?>" class="label"><?php echo $row['id'];?></label>
</td>
<input type="checkbox" id="c<?php echo $row['id'];?>" class="check">
<label for="c<?php echo $row['id'];?>" class="label"><?php echo $row['id'];?></label>
</td>
2017-05-02
// 管理员登录
function checkLogined() {
$_SESSION['adminId'] = empty($_SESSION['adminId'])? null : $_SESSION['adminId'];
$_COOKIE['adminId'] = empty($_COOKIE['adminId'])? null : $_COOKIE['adminId'];
if ($_SESSION['adminId'] =="" && $_COOKIE['adminId'] == "") {
alertMes("进入失败,请登录", "login.php");
}
}
function checkLogined() {
$_SESSION['adminId'] = empty($_SESSION['adminId'])? null : $_SESSION['adminId'];
$_COOKIE['adminId'] = empty($_COOKIE['adminId'])? null : $_COOKIE['adminId'];
if ($_SESSION['adminId'] =="" && $_COOKIE['adminId'] == "") {
alertMes("进入失败,请登录", "login.php");
}
}
2017-05-01