zoukankan      html  css  js  c++  java
  • 列表添加商品也代码

    <?php
    include "../include/head.php";
    include "../include/cn.php";
    $sql="select list_content.title as title,list_content.content as content,list_class.title as tt,list_content.id as id from list_content inner join list_class on list_content.class=list_class.id";
    $rs=mysql_query($sql);
    ?>
    <body>
    <table width="100%" border="1" cellspacing="1" cellpadding="1">
      <tr>
        <td colspan="5" align="center"><strong>列表模块管理</strong></td>
      </tr>
      <tr>
        <td width="13%">主题</td>
        <td width="41%">内容</td>
        <td width="26%">类别</td>
        <td width="11%">删除</td>
        <td width="9%">修改</td>
      </tr>
      <?php
      while ($row=mysql_fetch_array($rs))
      {
      ?>
      <tr>
        <td><?php echo $row["title"]?></td>
        <td><?php echo $row["content"]?></td>
        <td><?php echo $row["tt"]?></td>
        <td><a href="del.php?id=<?php echo $row["id"]?>" onClick="return confirm(确认要删除么)">删除</a></td>
        <td><a href="up1.php?id=<?php echo $row["id"]?>" onClick="return confirm(确认要修改么)">修改</a></td>
      </tr>
      <?php
      }
      ?>
    </table>
    </body>
    </html>

  • 相关阅读:
    nginx
    不再想写博客的大众集合教程
    数据结构与算法之算法
    数据结构与算法
    yii2的安装使用
    git的使用方法总结
    php生成图片验证码
    git推送失败的问题
    配置nginx支持thinkphp框架
    centos下的lnmp环境搭建
  • 原文地址:https://www.cnblogs.com/F-lower/p/3365810.html
Copyright © 2011-2022 走看看