上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: mysql -h localhost -u 用戶名 -p密碼 //連接數據庫use 数据库名; //使用數據庫show tables; //顯示數據表describe desk6_0; //顯示表結構 mysql其他命令: show databases; 显示数据库 create database  阅读全文
posted @ 2017-03-22 11:04 哔哩哔哩干杯 阅读(134) 评论(0) 推荐(0) 编辑
摘要: select 主表id,主表列名,(select count(*) from 从表 where 主表.id = 从表.对应列名) from 主表 阅读全文
posted @ 2017-03-01 10:08 哔哩哔哩干杯 阅读(2071) 评论(0) 推荐(0) 编辑
摘要: 父页面获取子页面的值 $('iframe的id').contents().find(子页面的id).text(); 子页面获取父页面的值 $("父页面id",window.parent.document).html(); 父页面调用子页面的方法 document.getElementById('if 阅读全文
posted @ 2017-02-28 15:18 哔哩哔哩干杯 阅读(5777) 评论(0) 推荐(0) 编辑
摘要: $("#qx").click(function(){ if(this.checked) { $(".qx2:checkbox").attr("checked",true); } else { $(".qx2:checkbox").attr("checked",false); } }) 阅读全文
posted @ 2017-02-22 09:37 哔哩哔哩干杯 阅读(137) 评论(0) 推荐(0) 编辑
摘要: $db = new MySQLi("链接","用户名","密码","数据库名"); $program_char="utf-8"; mysqli_set_charset($db,$program); 阅读全文
posted @ 2017-02-22 08:30 哔哩哔哩干杯 阅读(227) 评论(0) 推荐(0) 编辑
摘要: var a = window.location.search; a = decodeURI(a.substring(1)); alert(a); 阅读全文
posted @ 2017-02-22 08:26 哔哩哔哩干杯 阅读(331) 评论(0) 推荐(0) 编辑
摘要: <?php /** file: page.class.php 完美分页类 Page */ class Page { private $total; //数据表中总记录数 private $listRows; //每页显示行数 private $limit; //SQL语句使用limit从句,限制获取 阅读全文
posted @ 2017-02-20 21:18 哔哩哔哩干杯 阅读(156) 评论(0) 推荐(0) 编辑
摘要: // 每个弹窗的标识 var x =0; var idzt = new Array(); var Window = function(config){ //ID不重复 idzt[x] = "zhuti"+x; //弹窗ID //初始化,接收参数 this.config = { width : con 阅读全文
posted @ 2017-02-20 21:15 哔哩哔哩干杯 阅读(136) 评论(0) 推荐(0) 编辑
摘要: <?php class DBDA { public $host="localhost"; //服务器地址 public $uid="root"; //用户名 public $pwd="123"; //密码 public $dbconnect; //连接对象 //操作数据库的方法 //$sql代表需要 阅读全文
posted @ 2017-02-19 13:20 哔哩哔哩干杯 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 window.onload = function() 2 { 3 var aa = true; 4 window.onclick = function() 5 { 6 if(aa) 7 { 8 document.getElementbyId("id1").style.dispaly = "non 阅读全文
posted @ 2017-02-16 17:17 哔哩哔哩干杯 阅读(2437) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页