您的位置:手机购彩平台 > 手机购彩平台-编程 > 手机购彩平台遍历echsop的region表形成缓存的程序

手机购彩平台遍历echsop的region表形成缓存的程序

2020-02-14 12:33

如下所示:

header("Content-type: text/html; charset=utf-8"); $con = mysql_connect("localhost","root","root");if {die('Could not connect: ' . mysql_error;}mysql_select_db;$result = mysql_query("SELECT * FROM ecs_region where region_type=1");$data=array();while($row = mysql_fetch_array{$data1=array();$data1["itemName"]=$row["region_name"];$data1["itemCode"]=$row["region_id"];$data1["list"]=array();$data[]=$data1;unset;}foreach ($data as $key => $value) {$result1 = mysql_query("SELECT * FROM ecs_region where parent_itemCode"]);while($row1 = mysql_fetch_array{$data1=array();$data1["itemName"]=$row1["region_name"];$data1["itemCode"]=$row1["region_id"];$data1["list"]=array();$result2 = mysql_query("SELECT * FROM ecs_region where parent_region_id"]);while($row2 = mysql_fetch_array{$data2=array();$data2["itemName"]=$row2["region_name"];$data2["itemCode"]=$row2["region_id"];$data2["list"]=array();$data2["list"]=$data2["list"];$data1["list"][]=$data2;unset;}//$data[$key]["list"][]=json_encode;$data[$key]["list"][]=$data1;unset;}}// foreach ($data as $key => $value) {// $data[$key]["list"]=json_encode;// }put_content;function put_content {$message=" ";$fold = "address_config.php";$stderr = fopen;fwrite;fclose;}mysql_close;?>

以上就是小编为大家带来的遍历echsop的region表形成缓存的程序实例代码全部内容了,希望大家多多支持脚本之家~

本文由手机购彩平台发布于手机购彩平台-编程,转载请注明出处:手机购彩平台遍历echsop的region表形成缓存的程序

关键词: