- 博客(3)
- 资源 (11)
- 收藏
- 关注
原创 PHP连接MySQL数据库的几种方法(mysql /mysqli/PDO)
一、最简单的方式-mysql(面向过程)<?php$con = mysql_connect("localhost","root","password");$select_db = mysql_select_db('test');if (!$select_db) { die("could not connect to the db:\n" . mysql_error());}//查询代码$sql = "select * from db_table";$res =
2020-09-27 16:43:56 503
原创 php字符串中是否包含指定字符串的常用方法
一、strstr()该函数返回字符串的其余部分(从匹配点)。如果未找到所搜索的字符串,则返回 false,该函数区分大小写。<?php$email = '[email protected]';$domain = strstr($email, '@');echo $domain; // 打印 @example.com$user = strstr($email, '@', true...
2020-09-27 14:33:14 877
原创 unable to resolve r eference ‘refs/remotes/origin/xxx‘: reference broken
问题:突然断电导致git pull失败,提示上面内容(文件损坏)解决方法:删除.git文件夹下的(上面路径的文件)refs/remotes/origin/xxx,再push就好了
2020-09-03 15:25:24 401
基于Node.js的DNS查询小工具
2018-06-03
Thinkphp5的验证码点击刷新实例
2018-05-21
echarits完整版(包含所有图表组件)
2017-10-11
bootstrap-datetimepicker时间控件使用小demo
2017-10-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人