mysql批量添加数据
$conn=new sqlhelper;
for ($i = 0; $i <1000 ; $i++) {
$sql="insert into system_user(user_shenfen_id,user_email,user_passwod) values (concat($i,'3336'),'001@163.com','8844')";
$conn->run_done($sql);
}
$conn=new sqlhelper;
for ($i = 0; $i <1000 ; $i++) {
$sql="insert into system_user(user_shenfen_id,user_email,user_passwod) values (concat($i,'3336'),'001@163.com','8844')";
$conn->run_done($sql);
}
需要用到PHP自带函数chr()方法如下:$string=str_replace(chr(0x01),"",$string);...
用substr函数实现substr(md5(变量),8,16);就可以实现默认的md5(变量)输出的是32位加密方法...
<?php $servername = "localhost"; $username = "root"; $...
在httpd.conf添加<IfModule mod_env.c>SetEnv 常量名 常量值</IfModule>...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...
echo date('Y-m-d',$date); PHP里面将date型数据输出: echo $date; PHP里面将dat...