Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style type="text/css">
- table { margin-bottom: 1.4em; width:100%; } thead th { background: #004a80; color: #fefefe; } th,td,caption { padding: 4px 10px 4px 5px; vertical-align: top; } tr.even td, tbody > tr:nth-child(even) td, tbody > tr:nth-child(even) th { background: #e5ecf9; } tfoot { font-style: italic; }
- </style>
- </head>
- <body>
- <?php
- $username="username";
- $password="password";
- $database="mydb";
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $query = "SELECT `id` FROM `events` WHERE `start` < NOW( ) AND `finish` > NOW( )";
- $result=mysql_query($query);
- $eventid = mysql_result($result,0);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement