摘要:
https://blog.csdn.net/eagle89/article/details/90901755 假设有一个表user,字段分别有id–nick_name–password–email–phone,分情况如下(注意删除多余记录时要创建临时表,不然会报错): 一、单字段(nick_name 阅读全文
摘要:
https://www.cnblogs.com/wicub/p/4353848.html 生成如下XML串Xml代码 <?xml version="1.0" encoding="utf-8"?> <article> <item> <title size="1">title1</title> <con 阅读全文
摘要:
mysql产生随机数小结一下,可以为mysql的表生成大量的随机数: 1) 产生0到10000间的随机数 SELECT RAND() * 10000; 对应产生相应的整数 SELECT FLOOR(RAND() * 10000) 2) 使用md5()产生32位随机字符串 SELECT MD5(RAN 阅读全文
摘要:
1、先在服务器中通过命令行方式(打开phpstudy界面->右下角其他菜单选项->MySQL工具->MySQL命令行) 登录mysql:mysql -u root -p 密码 (如果mysql初始账号和密码都是root) 反正就是cmd登录mysql 2、执行use mysql; 3、执行grant 阅读全文
摘要:
http://www.liuyangdeboke.cn/?post=309 上面的链接是具体到某些属性的用法,下面只是最简单的导出excel composer require phpoffice/phpspreadsheet /** * 输出到浏览器(需要设置header头) * @param st 阅读全文
摘要:
以前记录了好多,总是不好找,这次就简单的记录一下 function curl_get($url){ $header = array( 'Accept: application/json', ); $curl = curl_init(); //设置抓取的url curl_setopt($curl, C 阅读全文
摘要:
$list = generate_id(10,"410403",25,59); var_dump($list); //count生成数量;prefix前六位;age_start开始年龄,age_end结束年龄,gender性别0不限1男2女 function generate_id($count = 阅读全文
摘要:
function plusOneMonth($time){ //$time = time(); $date = date("Y-m-d",$time); $day = date("d",$time); if($day=="29" || $day=="30" || $day=="31"){ //获取下 阅读全文
摘要:
function http_post($url, $data_string) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_set 阅读全文
摘要:
function createStyle(){ return"*{padding:0;margin:0;border:0}.loading{width:640px;height:1024px;margin:0 auto}.loadImg{width:640px;height:1024px;anima 阅读全文