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再调用json_decode从字符串对象生成json对象时,如果使用[]操作符取数据,会得到下面的错误:Cannot use object of type stdClass as array产生...
<?php //设置cookie setcookie("user_name", "frank", time()+3600); /...
<?php $my_name='&&&&'; //echo substr(xml_entities(...
php的function函数内部只能有一个return,之后的代码就都全部运行不正常了...
<?php $servername = "localhost"; $username = "root"; $...
echo json_encode($arr,JSON_UNESCAPED_UNICODE); //转换成json,并让中文不变成乱码JSON_UNESCAPED_UNICODE 这...