source: schedule/Transaction/measurement.php@ 19594

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