Home > Backend Development > PHP Tutorial > php关于取表格内数据值得有关问题

php关于取表格内数据值得有关问题

WBOY
Release: 2016-06-13 12:48:11
Original
919 people have browsed it

php关于取表格内数据值得问题
    include 'connect.php';
    $sql="SELECT *  FROM `rwgl`.`rwb`";
     mysql_select_db($mysql_database,$conn);
    $query=mysql_query($sql,$conn) or die("错误");
             while ($row=mysql_fetch_array($query)){
$i++;
?>










       
       }
 ?>
     mysql_close($conn);
 ?>

结果是:

1 aa bb 2013-04-19 2013-05-01 100 0 
1 cc dd 2013-04-19 2013-05-01 100 0 
1 ee ff 2013-04-19 2013-05-01 100 0 
1 gg jj 2013-04-19 2013-05-01 100 0  


我想点击任意一行的第二列后到数据库中查询包含该行的第一列和第二列的值的数据,应该怎样做?如果需要把标签框命名或ID的话应该怎样做?
PHP MySQL 数据库
------解决方案--------------------
把产生第二列的  改为
">
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template