Home  >  Article  >  Backend Development  >  高手帮小弟我看这两行代码的意思

高手帮小弟我看这两行代码的意思

WBOY
WBOYOriginal
2016-06-13 11:15:27818browse

高手帮我看这两行代码的意思



添加数据

 



    
    
    



 












echo date("Y-m-d")." ";
echo date(l);
?>
?action=show" class="a">浏览目录 action=insert" class="a">添加图书 简单查询 高级查询 分组统计 退出系统



    
      

$conn = mysql_connect("localhost","root","root");
mysql_query("set names gb2312");
mysql_select_db("db_mingrisoft"); 
//浏览图书
if (($action == null) or ($_GET[action] == "show")){
?>


  
    
    
    
    
    

  
$sqlstr = "select * from tb_mrbook order by id";
$result = mysql_query($sqlstr,$conn);

while ($rows = mysql_fetch_row($result)){
echo "";
for($i = 0; $i  echo "";
}
echo "";
echo "";
}
?>
id 书名 价格 出版时间 类别 操作
".$rows[$i]." 修改/删除
Statement:
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