当前位置: 代码迷 >> PHP >> 那个看下 这个代码哪儿出错了 能帮忙一下吗? DV上面说是52报错
  详细解决方案

那个看下 这个代码哪儿出错了 能帮忙一下吗? DV上面说是52报错

热度:13   发布时间:2016-04-28 18:14:53.0
那个看下 这个代码哪里出错了 能帮忙一下吗?急啊 DV上面说是52报错
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<title>内链管理</title>
</head>
<form id="form1" name="form1" method="post" action="?jm=" enctype="multipart/form-data">
<div id="man_zone">
<div id="content">
    <div id="box">
    <h3>内链管理</h3>
    <div id="pager">
<font color=#808080>当前共有记录 <b></b> 条,分 <b></b> 页显示,当前在 <b></b> 页</font>                    </div>
<table width="100%">
<SCRIPT LANGUAGE="JavaScript">
<!--
function check_all(sel_all){
    var sels = document.form1.ck_js;
    for (var i =0; i < sels.length; i++){
        sels[i].checked = sel_all.checked;
    }
}
//-->
</SCRIPT>
<thead>
<tr>
             <th width="40px"><a href="#">ID<img src="img/icons/arrow_down_mini.gif" width="16" height="16" align="absmiddle" /></a></th>
             <th width="40px"><input type=checkbox name="sel_all" onclick ="check_all(this)" value="Check All"></th>
             <th>名 &nbsp; &nbsp;称</th>
             <th width="300px">链 &nbsp; &nbsp;接</th>
             <th width="150px">日 &nbsp; &nbsp;期</th>
             <th width="70px">操 &nbsp; &nbsp;作</th>
            </tr>
</thead>
<tbody>
    <?php
     if(isset($_POST['submit'])&& $_POST['act']=="search"){ 
      include_once('conn.php');//引入数据库连接文件
      $sql="SELECT 'link_id','link_name','link_name' FROM `link_tal` WHERE `$searchConditon` ";
      $rst = mysql_query($sql,$conn); //执行查询
      if($rst){ //判断下查询是否成功
      while(@$row=mysql_fetch_array($rst)){ //循环输出结果,将把结果返回到$row数组中  
      foreach($product_info as $row){
            echo "<td>".$row->product_id."</td>";
            echo "<td>".$row->product_name."</td>";
            echo "<td>".$row->product_time."</td>";
        echo "<td>".anchor('updatelink.php/'.$row->link_id);
            echo "</tr>";    
        mysql_close($conn);//关闭连接以释放资源                                   
     }   
    ?>                                    
</tbody>
</table>
                    <div id="pager" align="right">
                    <input name="article_del" type="submit" class="ButtonOff" value="删除">&nbsp; &nbsp;                    
                    <option value=>1</option>
                    </select>&nbsp;
                    <input type=button value="Go" disabled style=width:20px>
                      </div>
      </div>
                        <br />
                <div id="box">
                 <h3 id="adduser">添加关键字</h3>
                      <fieldset id="personal">
                        <legend>信息</legend>
                        <label for="lastname">关键字:</label> 
                        <input name="link_name" type="text" id="link_name">&nbsp; 
                        <br />
                        <label for="lastname">链接:</label> 
                        <input name="link_text" type="text" id="link_text">&nbsp; 
                        <br />
                      </fieldset>
                      <div align="center">
                      <input id="button1" type="submit" value="提交" name="article_add" /> 
                      <input id="button2" type="reset" value="重置" />
                      </div>
                </div>
            </div>
       </div>
   </form>
>
</html>

------解决思路----------------------
echo "<td>".$row->product_id."</td>";
echo "<td>".$row->product_name."</td>";
echo "<td>".$row->product_time."</td>";
echo "<td>".anchor('updatelink.php/'.$row->link_id);
你那样取数组值可以吗?是我孤陋寡闻了吗?
是不是应该这样写$row['product_id']
  相关解决方案