| @@ 64-75 (lines=12) @@ | ||
| 61 | } |
|
| 62 | } |
|
| 63 | ||
| 64 | public function nextRecord() |
|
| 65 | { |
|
| 66 | if (is_resource($this->handle)) { |
|
| 67 | $result = sqlsrv_fetch_array($this->handle, SQLSRV_FETCH_ASSOC); |
|
| 68 | ||
| 69 | if ($result && !empty($result)) { |
|
| 70 | return $result; |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| 74 | return false; |
|
| 75 | } |
|
| 76 | ||
| 77 | public function seek($row) |
|
| 78 | { |
|
| @@ 77-88 (lines=12) @@ | ||
| 74 | return false; |
|
| 75 | } |
|
| 76 | ||
| 77 | public function seek($row) |
|
| 78 | { |
|
| 79 | if (is_resource($this->handle)) { |
|
| 80 | $result = sqlsrv_fetch_array($this->handle, SQLSRV_FETCH_ASSOC, SQLSRV_SCROLL_ABSOLUTE, $row); |
|
| 81 | ||
| 82 | if ($result && !empty($result)) { |
|
| 83 | return $result; |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| 87 | return false; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||