会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
南瓜壳
博客园
首页
新随笔
联系
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
26
下一页
2018年11月8日
js------match() 方法
摘要: match() 方法可在字符串内检索指定的值,或找到一个或多个正则表达式的匹配。返回指定的值 该方法类似 indexOf() 和 lastIndexOf(),但是它返回指定的值,而不是字符串的位置。
阅读全文
posted @ 2018-11-08 16:34 南瓜壳
阅读(168)
评论(0)
推荐(0)
2018年11月7日
cookie
摘要: 1.获取cookie 2.设置和删除cookie 获取cookie解释
阅读全文
posted @ 2018-11-07 17:58 南瓜壳
阅读(122)
评论(0)
推荐(0)
首次加载动画
摘要: 1.JS逻辑 <script type="text/javascript"> window.onload = function(){ setTimeout(function(){ $(".loading").fadeOut(); },1000); }; if(getCookie("id") == 1
阅读全文
posted @ 2018-11-07 17:53 南瓜壳
阅读(320)
评论(0)
推荐(0)
留言板验证js+php+mySQL
摘要: //表单验证function verify(){ //form提交之前先判空 var mfzdlj = $(".mfzdlj").val().trim(); var mfname = $("#mfuser").val().trim(); var mfphone =$("#mfphone").val(
阅读全文
posted @ 2018-11-07 10:18 南瓜壳
阅读(448)
评论(0)
推荐(0)
数据库记录查询界限
摘要: 查询msgs表和users表中0-10条记录 $sql = "select msgs.id,msgs.title,users.name,msgs.time from msgs,users limit 0,10"; 像users数据表中插入数据 $sql = "insert into users(us
阅读全文
posted @ 2018-11-07 10:15 南瓜壳
阅读(139)
评论(0)
推荐(0)
2018年11月6日
PHP的大括号(花括号{})使用详解
摘要: 一、不管什么程序,function name(){}, for(){}, ….这太多了,不说也知道什么用了。 二、$str{4}在字符串的变量的后面跟上{}大括号和中括号[]一样都是把某个字符串变量当成数组处理。 三、{$val}这种情况就是我遇到的问题,这时候大括号起的作用就是,告诉PHP,括起来
阅读全文
posted @ 2018-11-06 16:40 南瓜壳
阅读(2766)
评论(0)
推荐(0)
查看单条留言内容
摘要: <?php //获取url参数 $msgId = $_GET['id']; #var_dump($msgId); require_once("connect.php"); $sql = "select msgs.title,msgs.content,msgs.time,users.name from
阅读全文
posted @ 2018-11-06 12:00 南瓜壳
阅读(151)
评论(0)
推荐(0)
SQL语句关联查询
摘要: <?php //获取数据库中的所有留言 require_once("connect.php"); //执行数据库查询 $sql="select msgs.id,msgs.title,users.name,msgs.time from msgs,users where users.id = msgs.
阅读全文
posted @ 2018-11-06 10:37 南瓜壳
阅读(1563)
评论(0)
推荐(0)
从数据库查询数据并输出到前台页面
摘要: <?php //获取数据库中的所有留言 require_once("connect.php"); //执行数据库查询 $sql = "select * from msgs"; $results = mysqli_query($link,$sql); //处理查询结果 while($row = mys
阅读全文
posted @ 2018-11-06 09:53 南瓜壳
阅读(6653)
评论(0)
推荐(0)
数据库连接
摘要: <?php$host="localhost"; //主机$db_user="root"; //用户名$db_pass="root"; //密码$db_name="message"; //数据库名$timezone="Asia/Shanghai"; $link=mysqli_connect($host
阅读全文
posted @ 2018-11-06 09:52 南瓜壳
阅读(153)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
26
下一页
公告