首页上一页 1 下一页尾页 1 条记录 1/1页
【急】PHP项目开发全程实录之电子商务平台 问题
发表在PHP图书答疑
2010-05-08
是否精华
是
否
版块置顶:
是
否
您好,我在学习这个实例时遇到如下问题,请帮忙解答啊!
问题1
Notice: Undefined index: qk in D:\wamp\www\shop\gouwu1.php on line 27
代码如下: $_SESSION['total']="";
if($_GET['qk']=='yes' ) // 27行
{
$_SESSION['producelist']="";
$_SESSION['quatity']="";
}
问题2
Notice: Undefined variable: _SESSION in D:\wamp\www\shop\top.php on line 53
Notice: Undefined variable: _SESSION in D:\wamp\www\shop\top.php on line 58 当用户为登陆状态时
Notice: Undefined index: username in D:\wamp\www\shop\top.php on line 53
Notice: Undefined index: username in D:\wamp\www\shop\top.php on line 58 当用户未登录时
代码如下: <?php
if($_SESSION['username']!="")
{
echo "当前用户:".$_SESSION['username']; // 53行
}?>
<td width="77" bgcolor="#FFFFFF">
<?php if($_SESSION['username']!="") // 58行
{
echo "<a href='logout.php'>注销离开</a>";
}?>
问题1
Notice: Undefined index: qk in D:\wamp\www\shop\gouwu1.php on line 27
代码如下: $_SESSION['total']="";
if($_GET['qk']=='yes' ) // 27行
{
$_SESSION['producelist']="";
$_SESSION['quatity']="";
}
问题2
Notice: Undefined variable: _SESSION in D:\wamp\www\shop\top.php on line 53
Notice: Undefined variable: _SESSION in D:\wamp\www\shop\top.php on line 58 当用户为登陆状态时
Notice: Undefined index: username in D:\wamp\www\shop\top.php on line 53
Notice: Undefined index: username in D:\wamp\www\shop\top.php on line 58 当用户未登录时
代码如下: <?php
if($_SESSION['username']!="")
{
echo "当前用户:".$_SESSION['username']; // 53行
}?>
<td width="77" bgcolor="#FFFFFF">
<?php if($_SESSION['username']!="") // 58行
{
echo "<a href='logout.php'>注销离开</a>";
}?>