Why is this code not executed?

Source: Internet
Author: User
Help me see why this code is not executed & lt ;! DOCTYPE & nbsp; HTML & nbsp; PUBLIC & nbsp; "-// W3C // DTD & nbsp; HTML & nbsp; 4.01 & nbsp; Transitional // EN" & nbsp; "http: // www help me see why this code is not executed




Batch delete data





Function del (){
If (! Window. confirm ('do you want to delete data? ')){
Return false;
}
Function chek (){
Var leng = 3;
If (leng = undefined ){
Leng = 1;
If (! Form1.chk. checked)
Document. form1.chk. checked = true;
Else
Document. form1.chk. checked = false;
} Else {
For (var I = 0; I <leng; I ++)
{
If (! Form1.chk [I]. checked)
Document. form1.chk [I]. checked = true;
Else

Document. form1.chk [I]. checked = false;
}
}
Return false;
}
Script $ Conn = mysql_connect ("localhost", "root", "123456 ");
Mysql_query ("set names gb2312 ");
Mysql_select_db ("db_mingrisoft ");
?>













Echo date ('Y-m-D'). "". date (l );
?>

Browse directory
Add books
Simple query
Advanced Query
Group statistics
Exit System





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" $ Field-> name";
}
Echo" Operation";
Echo"";

While ($ row = mysql_fetch_row ($ result )){
Echo"";
Echo" ";
Echo" ";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.