Home  >  Article  >  Backend Development  >  帮小弟我看上这段代码为什么不被执行

帮小弟我看上这段代码为什么不被执行

WBOY
WBOYOriginal
2016-06-13 11:16:48780browse

帮我看下这段代码为什么不被执行
nbsp;HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



批量删除数据


<script><br />function del(){<br />if(!window.confirm('你是否要删除数据?')){<br />return false;<br />}<br />function chek(){<br /> var leng = 3;<br /> if(leng==undefined){<br /> leng=1;<br /> if(!form1.chk.checked)<br /> document.form1.chk.checked=true;<br /> else<br /> document.form1.chk.checked=false;<br /> }else{ <br /> for( var i = 0; i < leng; i++)<br /> {<br /> if(!form1.chk[i].checked)<br /> document.form1.chk[i].checked = true;<br /> else<br /> <br /> document.form1.chk[i].checked = false;<br /> }<br /> } <br /> return false;<br />}<br /></script>$conn=mysql_connect("localhost","root","123456");
mysql_query("set names gb2312");
mysql_select_db("db_mingrisoft");
?>









 













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



if(($action==null)or($_GET[action]=="show"))
{
?>




$sqlstr="select * from tb_mrbook order by id";
$result=mysql_query($sqlstr,$conn);
while($field=mysql_fetch_field($result)){
echo"";
}
echo"";
echo "";

while($row=mysql_fetch_row($result)){
echo "";
echo "
  $field->name操作
";
echo "";
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