Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $user = "wltmadmin";
- $pass = "Zocnufdor1";
- $database = "wltm";
- mysql_connect($host, $user, $pass) or die("Could not connect to host.");
- mysql_select_db($database) or die("Could not find database.");
- $id = $_GET['id'];
- $query = "SELECT * FROM listings WHERE id='$id'";
- $result = mysql_fetch_array(mysql_query($query));
- if($result['premium'] == 1){
- echo "This company has a premium listing with the following open times for monday:<br>";
- echo "<b>Monday - </b>Open: " . $result['monday_open'] . ", Close: " . $result['monday_close'] . "<br>";
- }else{
- echo "This company is not a premium listing!";
- }
- ?>
Add Comment
Please, Sign In to add comment