byxiaozhe's recent timeline updates
byxiaozhe

byxiaozhe

V2EX member #211147, joined on 2017-01-17 15:02:18 +08:00
byxiaozhe's recent replies
Feb 12, 2017
Replied to a topic by byxiaozhe PHP 关于一些 json 的问题
@mhycy

$query = DB::query("SELECT * FROM " . DB::table('forum_forum') . " WHERE type='group' and status=1 ORDER BY fid ASC");
$ar=array();
while ($soft = DB::fetch($query)) {
$querys = DB::query("SELECT * FROM " . DB::table('forum_forum') . " WHERE fup=".$soft['fid']." and status=1 ORDER BY fid ASC");
while ($softs = DB::fetch($querys)) {
$queryss = DB::query("SELECT * FROM " . DB::table('forum_forumfield') . " WHERE fid=".$softs['fid']." ORDER BY fid ASC");
while ($softss = DB::fetch($queryss)) {
$ar[] = array("fupdz"=>$soft['fid'],"data"=>array(array("id"=>$softs['fid'],"fup"=>$softs['fup'],"name"=>iconv('gb2312','utf-8',$softs['name']),"px"=>$softs['displayorder'],"icon"=>$softss['icon'])));
}
}
}


如何添加你刚发的那个 这是源代码
Feb 12, 2017
Replied to a topic by byxiaozhe PHP 关于一些 json 的问题
@mhycy 我试试
Feb 12, 2017
Replied to a topic by byxiaozhe PHP 关于一些 json 的问题
@qiayue 循环采用的是数据库的 while
Feb 12, 2017
Replied to a topic by byxiaozhe PHP 关于一些 json 的问题
@imlonghao673 fupdz 前面那个{就是 只是后面忘记加了个]
Feb 12, 2017
Replied to a topic by byxiaozhe PHP 关于一些 json 的问题
@onlyhot 源代码是数组 但是不知道数组怎么搞
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2773 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 15:31 · PVG 23:31 · LAX 08:31 · JFK 11:31
♥ Do have faith in what you're doing.