看板 [ PHP ]
討論串[請益] 怎摸把撈出來的資料變成二維陣列
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者tkdmaf (皮皮快跑)時間11年前 (2014/07/01 23:49), 編輯資訊
0
0
2
內容預覽:
簡單來說你是想做成索引資料陣列吧。. 如果你的索引欄位就叫odate. while($row = mysql_fetch_assoc($result)){. $key = $row['odate'];. $query[$key] = $row;. }. 不過這當中要注意就是odate不能有重覆,不然

推噓1(1推 0噓 9→)留言10則,0人參與, 最新作者ohshit (DJ歐雪特)時間11年前 (2014/07/01 06:52), 編輯資訊
0
0
1
內容預覽:
新手想請問一下. $sql="select odate,otime,order_payok from orders ;. $result=mysql_db_query("myweb",$sql,$link);. echo "<table border='1'>";. while (list($oda
(還有176個字)
首頁
上一頁
1
下一頁
尾頁