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);
}
用substr函数实现substr(md5(变量),8,16);就可以实现默认的md5(变量)输出的是32位加密方法...
php的open_basedir设置多个路径(目录),分隔符是“:”冒号open_basedir=/www/wwwroot/www.ceshi.com/:/tmp/:/www/...
$arr[] //用于收集子数组;serialize($arr)&nb...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...
<?php //设置cookie setcookie("user_name", "frank", time()+3600); /...
<?php $servername = "localhost"; $username = "root"; $...