Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php error_reporting(E_ALL | E_STRICT);
- ini_set('display_errors', 1); session_start();
- ?>
- <?php include 'conVol.php'; ?>
- <!DOCTYPE html>
- <html>
- <head>
- </head>
- <body>
- <?php include("header.php"); ?>
- <div id="main_wrap">
- <div id="wrap_one">
- <div class="container_wrap">
- <div id="header" class="black">
- <img src="images/headers/mainheader.png" />
- </div>
- <form method="post" action="2012bandScheduleDisplay.php" id="2012bandSched">
- <div id="bandSchedWrap" class="aqua">
- <div class="saturdaySched full_width light_gray">
- <div style="padding:20px">
- <h2>SATURDAY</h2>
- <div id="stage1sat" class="stageBox">
- <h3>STAGE 1</h3>
- <?php
- $sql = "SELECT * FROM bandSched WHERE day='saturday' AND stage='stage 1'";
- mysql_query($sql);
- $result_Sat1 = mysql_query($sql);
- while($row = mysql_fetch_array($result_Sat1))
- {
- echo "<ul><li>";
- echo '<input type="checkbox" name="id[]" value="'.$row['id'].'"/>';
- echo ' '.$row['timeShow'] . " " .$row['bandName'];
- echo "</li></ul>";
- }
- ?>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- <table width="400">
- <tr>
- <td>CLICK TO FINISH.</td>
- <td width="35" colspan="1" style="padding-left:10px"><input value="Submit" type="image" src="images/submitx.png" id="submit" width="35" align="middle"/></td></tr>
- </table>
- </div>
- </form>
- <div class="full_width orange">
- <!-- Column 1 start -->
- <img src="images/contactTop.png" />
- <!-- Column 1 end -->
- </div>
- <?php include("footer.php"); ?>
- 'process.php'
- <?php
- if ( ! empty($_POST['id']))
- {
- $in = implode(', ', $_POST['id']);
- $sql = "SELECT * FROM bandSched WHERE id IN ($in) ORDER BY FIELD (id, $in)";
- $result = mysql_query($sql);
- }
- if ( ! isset($result))
- {
- echo 'You did not select anything';
- }
- else
- {
- while ($row=mysql_fetch_assoc($result))
- {
- echo $row['timeShow'];
- echo $row['bandShow'];
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement