| @@ 31-42 (lines=12) @@ | ||
| 28 | ||
| 29 | $newPositionStatus; |
|
| 30 | ||
| 31 | if ($result->num_rows > 0) |
|
| 32 | { |
|
| 33 | // output data of each row |
|
| 34 | while($row = $result->fetch_assoc()) |
|
| 35 | { |
|
| 36 | $accessToken = $row["access_token"]; |
|
| 37 | } |
|
| 38 | } |
|
| 39 | else |
|
| 40 | { |
|
| 41 | echo "Error: 0 results"; |
|
| 42 | } |
|
| 43 | ||
| 44 | ||
| 45 | if(isset($_GET['view'])) |
|
| @@ 217-228 (lines=12) @@ | ||
| 214 | ||
| 215 | $accessToken; |
|
| 216 | ||
| 217 | if ($result->num_rows > 0) |
|
| 218 | { |
|
| 219 | // output data of each row |
|
| 220 | while($row = $result->fetch_assoc()) |
|
| 221 | { |
|
| 222 | $accessToken = $row['access_token']; |
|
| 223 | } |
|
| 224 | } |
|
| 225 | else |
|
| 226 | { |
|
| 227 | echo "Error: 0 results"; |
|
| 228 | } |
|
| 229 | ||
| 230 | return $accessToken; |
|
| 231 | } |
|