質問編集履歴
1
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
smartyでforeachいるのですがなぜそれでうごくかよくわからない
|
1
|
+
smartyでforeachされているのですがなぜそれでうごくかよくわからない
|
body
CHANGED
@@ -4,18 +4,18 @@
|
|
4
4
|
|
5
5
|
$res=pg_query_parames($conn,$sql);
|
6
6
|
|
7
|
-
$
|
7
|
+
$datam =array();
|
8
8
|
|
9
|
-
$
|
9
|
+
$datam_wk = pg_fetchall($res)
|
10
10
|
|
11
|
-
foeach($
|
11
|
+
foeach($datam_wk as $d_wk){
|
12
12
|
$data=array(
|
13
13
|
'name' =>$res['name'],
|
14
14
|
'adress'=> $res['adress']
|
15
15
|
)
|
16
16
|
}
|
17
17
|
|
18
|
-
$tpl->assing('data',$
|
18
|
+
$tpl->assing('data',$datam)
|
19
19
|
|
20
20
|
```
|
21
21
|
|