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位加密方法...
在httpd.conf添加<IfModule mod_env.c>SetEnv 常量名 常量值</IfModule>...
apache在windows环境设置站点目录的时候需要设置给网站目录设置USER的读写修改删除权限,否则站点会开设不成功,设置方法:如下图所示:...
在php.ini配置文件里设置把error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT修改成error_reporting = E_AL...
<?php $servername = "localhost"; $username = "root"; $...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...