@@ 210-224 (lines=15) @@ | ||
207 | * @param null $key |
|
208 | * @return array |
|
209 | */ |
|
210 | public function GetRows($sql, $key = null) |
|
211 | { |
|
212 | global $xoopsDB; |
|
213 | $result = $xoopsDB->query($sql); |
|
214 | $rows = array(); |
|
215 | while ($row = $xoopsDB->fetchArray($result)) { |
|
216 | if (is_null($key)) { |
|
217 | $rows[] = $row; |
|
218 | } else { |
|
219 | $rows[$row[$key]] = $row; |
|
220 | } |
|
221 | } |
|
222 | ||
223 | return $rows; |
|
224 | } |
|
225 | ||
226 | /** |
|
227 | * @得到列表 |
@@ 192-206 (lines=15) @@ | ||
189 | * @param null $key |
|
190 | * @return array |
|
191 | */ |
|
192 | public function GetRows($sql, $key = null) |
|
193 | { |
|
194 | global $xoopsDB; |
|
195 | $result = $xoopsDB->query($sql); |
|
196 | $rows = array(); |
|
197 | while ($row = $xoopsDB->fetchArray($result)) { |
|
198 | if (is_null($key)) { |
|
199 | $rows[] = $row; |
|
200 | } else { |
|
201 | $rows[$row[$key]] = $row; |
|
202 | } |
|
203 | } |
|
204 | ||
205 | return $rows; |
|
206 | } |
|
207 | ||
208 | /** |
|
209 | * @得到列表 |
@@ 357-371 (lines=15) @@ | ||
354 | * @param null $key |
|
355 | * @return array |
|
356 | */ |
|
357 | public function GetRows($sql, $key = null) |
|
358 | { |
|
359 | global $xoopsDB; |
|
360 | $result = $xoopsDB->query($sql); |
|
361 | $rows = array(); |
|
362 | while ($row = $xoopsDB->fetchArray($result)) { |
|
363 | if (is_null($key)) { |
|
364 | $rows[] = $row; |
|
365 | } else { |
|
366 | $rows[$row[$key]] = $row; |
|
367 | } |
|
368 | } |
|
369 | ||
370 | return $rows; |
|
371 | } |
|
372 | ||
373 | /** |
|
374 | * @得到列表 |
@@ 33-47 (lines=15) @@ | ||
30 | * @param null $key |
|
31 | * @return array |
|
32 | */ |
|
33 | public function GetRows($sql, $key = null) |
|
34 | { |
|
35 | global $xoopsDB; |
|
36 | $result = $xoopsDB->query($sql); |
|
37 | $rows = array(); |
|
38 | while ($row = $xoopsDB->fetchArray($result)) { |
|
39 | if (is_null($key)) { |
|
40 | $rows[] = $row; |
|
41 | } else { |
|
42 | $rows[$row[$key]] = $row; |
|
43 | } |
|
44 | } |
|
45 | ||
46 | return $rows; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @get hotel news |
@@ 48-62 (lines=15) @@ | ||
45 | * @param null $key |
|
46 | * @return array |
|
47 | */ |
|
48 | public function GetRows($sql, $key = null) |
|
49 | { |
|
50 | global $xoopsDB; |
|
51 | $result = $xoopsDB->query($sql); |
|
52 | $rows = array(); |
|
53 | while ($row = $xoopsDB->fetchArray($result)) { |
|
54 | if (is_null($key)) { |
|
55 | $rows[] = $row; |
|
56 | } else { |
|
57 | $rows[$row[$key]] = $row; |
|
58 | } |
|
59 | } |
|
60 | ||
61 | return $rows; |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * @add memeber favorite hotel |
@@ 232-246 (lines=15) @@ | ||
229 | * @param null $key |
|
230 | * @return array |
|
231 | */ |
|
232 | public function GetRows($sql, $key = null) |
|
233 | { |
|
234 | global $xoopsDB; |
|
235 | $result = $xoopsDB->query($sql); |
|
236 | $rows = array(); |
|
237 | while ($row = $xoopsDB->fetchArray($result)) { |
|
238 | if (is_null($key)) { |
|
239 | $rows[] = $row; |
|
240 | } else { |
|
241 | $rows[$row[$key]] = $row; |
|
242 | } |
|
243 | } |
|
244 | ||
245 | return $rows; |
|
246 | } |
|
247 | ||
248 | /** |
|
249 | * @得到列表 |
@@ 49-63 (lines=15) @@ | ||
46 | * @param null $key |
|
47 | * @return array |
|
48 | */ |
|
49 | public function GetRows($sql, $key = null) |
|
50 | { |
|
51 | global $xoopsDB; |
|
52 | $result = $xoopsDB->query($sql); |
|
53 | $rows = array(); |
|
54 | while ($row = $xoopsDB->fetchArray($result)) { |
|
55 | if (is_null($key)) { |
|
56 | $rows[] = $row; |
|
57 | } else { |
|
58 | $rows[$row[$key]] = $row; |
|
59 | } |
|
60 | } |
|
61 | ||
62 | return $rows; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @search hotels |