Beispiel #1
0
<?php

//this might take a while to run
session_start();
include "classes/users.class.php";
$time = microtime(true);
$users = new users();
//$blah = $users->clear_db();
$blah = $users->create_db();
$blah = $users->fill_database();
$time = microtime(true) - $time;
echo "total time to run is: {$time} seconds";
echo '</br>';
?>

<?php 
echo $blah;
Beispiel #2
0
<?php

session_start();
include "classes/users.class.php";
include "templates/header.php";
include "js/script.js";
$users = new users();
$users->create_db();
$airports = $users->get_airports();
?>


<form name="flight" id="flight">
    <select name="to_airport">
<?php 
foreach ($airports as $airport) {
    ?>
        <option><?php 
    echo $airport['iata'];
    ?>
 : <?php 
    echo $airport['name'];
    ?>
 - <?php 
    echo $airport['city'];
    ?>
, <?php 
    echo $airport['state'];
    ?>
</option>
Beispiel #3
0
<?php

include 'users.class.php';
$user = new users();
$user->create_db();
$user->fill_database();