摘要: 0) { $qx = $_POST["qx"]; $str = implode("','",$qx); $tj1 = " area in('{$str}') "; } if(!empty($_POST["zl"]) && count($_POST["zl"])>0) { $zl = $_POST["zl"]; $str = implode("','",$zl); $tj2 ... 阅读全文
posted @ 2016-12-23 15:54 徐文昊 阅读(103) 评论(0) 推荐(0) 编辑
摘要: <h1>查询页面</h1> <?php $db = new MySQLi("localhost","root","123","mydb"); $tj = " 1=1 "; $name = ""; if(!empty($_POST["name"])) { $name = $_POST["name"]; 阅读全文
posted @ 2016-12-23 14:45 徐文昊 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 列表 代号 名称 价格 产地 库存 操作 query($sql); /*$attr = $result->fetch_all(); foreach($attr as $v) { echo "($v[0])($v[1])($v[2])($v[... 阅读全文
posted @ 2016-12-19 11:53 徐文昊 阅读(195) 评论(0) 推荐(0) 编辑
摘要: $a=10; //$b="hello";//$a=(string)$a; 强制转换A的类型为字符串 //settype($a,"string");//var_dump($a); //$s = "hello";//$s1 = 'world';//双引号里面可以解析转义字符//php里面拼接用.不用加号 阅读全文
posted @ 2016-12-08 10:25 徐文昊 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1.连接查询,对结果集列的扩展select * from info select * from info,nation #形成笛卡尔积select * from info,nation where info.nation=nation.codeselect info.code,info.name,s 阅读全文
posted @ 2016-12-04 10:33 徐文昊 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 简单查询: 1.最简单的查询 select*form 表名; *查所有的列select*form info 2.查询指定列 select code,name form info 3.修改结果集的列名 select code as'代号',name as '姓名' form info 4.条件查询 s 阅读全文
posted @ 2016-12-02 10:28 徐文昊 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1.增加 insert into 表名 values(列的值,列的值) insert into 表名(列名,列名)valuse(值,值) 2.删除 delete from 表明 delete from test delete from 表名 where 条件delete from test wher 阅读全文
posted @ 2016-12-01 15:06 徐文昊 阅读(3386) 评论(0) 推荐(0) 编辑
摘要: 1.创建数据库 create database test3; 2.删除数据库 drop database test3; 3.新建表 (1):create table test( code varchar(20), name varchar(20)); (2):create table test1( 阅读全文
posted @ 2016-12-01 10:13 徐文昊 阅读(134) 评论(0) 推荐(0) 编辑
摘要: body{ min-width:900px;}.datu{ width:800px; height:500px; position:relative; margin:30px auto; overflow:hidden;}#ta{ margin-left:0px; transition:0.7s;} 阅读全文
posted @ 2016-11-15 00:33 徐文昊 阅读(99) 评论(0) 推荐(0) 编辑
摘要: onclick 鼠标点击 ondblclick鼠标双击onkeydown 按下触发onkeyup 按键抬起触发 onmousedownonmousemve 鼠标移动onmouseout 鼠标离开 阅读全文
posted @ 2016-11-15 00:29 徐文昊 阅读(131) 评论(0) 推荐(0) 编辑