缓存处理错误ob_start();
ob_end_flush() 是一对的,如果代码中无此二行,贴出前四行代码

解决方案 »

  1.   

    好像是数据库没有连接好,还提示用户名和密码错误,能告知你的QQ或者MSN吗?
      

  2.   

    这是前边的代码不过没有你说的。<?php
    include_once("include/common.php");
    include_once(WEB_ROOT."./include/cart.php");$cart =& new Cart(2);
    $cart->user = & $_SESSION['user']; 
    if($add)
    {
    $goodsID = intval($goodsID);
    $query = "select goodsID,goodsName,goodsMarketPrice,goodsUserPrice,goodsScore from $tbl_goods where goodsID=".$goodsID;
    $db->ExecQuery($query);
    $numRows = $db->NumRows();
      

  3.   

    Access denied for user 'gpukcn'@'localhost' (using password: YES)
    都提示这么清楚了。用户gpukcn无访问本地数据库的权限。
    查看数据库grant或mysqladmin命令。
      

  4.   

    第一个错误:根据返回的错误编号1045就可确定是数据库连接的用户名或密码错误。第二个notice:删除缓存失败,没有缓存可被删除。应该是你在ob_end_flush()前面根本没有ob_start()。第三个解析错误:converttotraditional()函数未定义。这个函数是自定义的嘛?相关定义的文件没有被include进来。