| @@ 203-206 (lines=4) @@ | ||
| 200 | } |
|
| 201 | $columns = array(); |
|
| 202 | $colcnt = $results->columnCount(); |
|
| 203 | for ($i = 0; $i < $colcnt; $i++) { |
|
| 204 | $col = $results->getColumnMeta($i); |
|
| 205 | $columns[] = $col['name']; |
|
| 206 | } |
|
| 207 | return $columns; |
|
| 208 | } |
|
| 209 | ||
| @@ 223-226 (lines=4) @@ | ||
| 220 | return "error : ".$e->getMessage()."\n"; |
|
| 221 | } |
|
| 222 | $colcnt = $results->columnCount(); |
|
| 223 | for ($i = 0; $i < $colcnt; $i++) { |
|
| 224 | $col = $results->getColumnMeta($i); |
|
| 225 | if ($name == $col['name']) return true; |
|
| 226 | } |
|
| 227 | return false; |
|
| 228 | } |
|
| 229 | ||