source:
schedule/Transaction/source.php@
17429
Last change on this file since 17429 was 17429, checked in by , 11 years ago | |
---|---|
File size: 369 bytes |
Line | |
---|---|
1 | <?php |
2 | //connect to the mysql |
3 | $db = mysql_connect("localhost","scheduletest","t3stsched"); |
4 | mysql_select_db('sandboxschedule', $db) or die("Could not select database"); |
5 | |
6 | //database query |
7 | $sql = @mysql_query("select*from source"); |
8 | |
9 | $rows = array(); |
10 | while($r = mysql_fetch_assoc($sql)) { |
11 | $rows[] = $r; |
12 | } |
13 | |
14 | //echo result as json |
15 | echo json_encode($rows); |
16 | ?> |
Note:
See TracBrowser
for help on using the repository browser.