added styles for tables
This commit is contained in:
16
app/scripts/database_queries.php
Normal file
16
app/scripts/database_queries.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
function get_Station() {
|
||||
try {
|
||||
$dbh = new PDO('mysql:host=mysql;dbname=ksp', 'grisu', 'secret');
|
||||
foreach($dbh->query('SELECT * from Station') as $row) {
|
||||
print_r($row);
|
||||
}
|
||||
$dbh = null;
|
||||
} catch(PDOException $e) {
|
||||
print "Error!: " . $e->getMessage() . "<br/>";
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user