質問編集履歴
1
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
smartyでforeachいるのですがなぜそれでうごくかよくわからない
|
1
|
+
smartyでforeachされているのですがなぜそれでうごくかよくわからない
|
test
CHANGED
@@ -10,15 +10,15 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
$data
|
13
|
+
$datam =array();
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
$data
|
17
|
+
$datam_wk = pg_fetchall($res)
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
foeach($data
|
21
|
+
foeach($datam_wk as $d_wk){
|
22
22
|
|
23
23
|
$data=array(
|
24
24
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
$tpl->assing('data',$data
|
35
|
+
$tpl->assing('data',$datam)
|
36
36
|
|
37
37
|
|
38
38
|
|