Jump to content

phpbigenner

Members
  • Posts

    19
  • Joined

  • Last visited

phpbigenner's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hello guy's! can you gave me a sample of javascript to check if the time reservation is reached the time interval that reservation is automatically cancelled.
  2. time_start and time_end are strings. then the value of time schedule have time_start and time_end.
  3. i have a problem on how to trap the time to enable the checkbox, can you help? example. the db name is time_schedule then the fields are 'time_start' and 'time_end' then there's a checkbox inside the html. my problem is how to enable the checkbox if the time schedule is not equal to the 'time_start' and 'time_end' value. need help guy's
  4. Hey guy's! I have a problem again on how to trap the time. example if the datestart is 08/12/2013 and the dateended is 08/13/2013. what should i do to display the movie until the time will 12:00 midnight. //i trap already the date here //datestart and dateended are strings <?php $q = mysql_query("select * from movie "); while ($row = mysql_fetch_array($q)){ if($row['dateended'] > date("m/d/Y")){ if($mid==$row['movieID']) echo "<option selected value=$row[movieID]>$row[title]</title>"; else echo "<option value=$row[movieID]>$row[title]</title>"; }else{} } ?>
  5. hey guy's! I have a problem again on how to trap the time. example if the datestart is 08/12/2013 and the date dateended is 08/12/2013. what should i do to display the dateended until it will greater than 12 AM in the midnight. // this is my code now // datestart and dateended are strings <?php $q = mysql_query("select * from movie "); $row = mysql_fetch_array($q); $sdate=$row['datestart']; $edate=$row['dateended']; while($sdate<=$edate) { echo "<option value=$sdate>$sdate</$sdate>"; $sdate =date('m/d/Y', strtotime('+1 day', strtotime($sdate))); } ?>
  6. thanks bro. I fix my problem. // this is my code now // datestart and dateended are strings <?php $q = mysql_query("select * from movie "); $row = mysql_fetch_array($q); $sdate=$row['datestart']; $edate=$row['dateended']; while($sdate<=$edate) { echo "<option value=$sdate>$sdate</$sdate>"; $sdate =date('m/d/Y', strtotime('+1 day', strtotime($sdate))); } ?>
  7. datestart and dateended are strings not integers.
  8. i have a database name movie and the fields are "datestart ", "dateended ". my problem is i want to retrieve the date that the movie is STARTED until the date that the movie is ENDED. example; date started is august 8, 2013, and the date ended is august 14, 2013 may concern is how to retrieve the date august 9, 2013, august 10, 2013 until august 13, 2013 // this is my code <?php $q = mysql_query("select * from movie "); $row = mysql_fetch_array($q); $sdate=$row['datestart']; $edate=$row['dateended']; while($sdate<=$edate){ echo "<option value=$sdate>$sdate</datestart>"; $sdate=mktime(0,0,0,date("m"),(date("d")+1),date("Y")); } ?>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Star Theater</title> <link rel="shortcut icon" href="images/favicon.ico" /> <link rel="stylesheet" media="screen" href="css/demo.css" /> </head> <body> <div id="demo-header"> <a id="login-link" href="logout_process.php" title="Logout">Logout</a> <div id="login-panel"> </div><!-- /login-panel --> </div><!-- /demoheader --> <br class="clear" /><br /><br /><br /> <div id="content"> <h1 class="pagehead"></h1> <ul id="menu"> <li><a href="home.php">Home</a></li> <li><a href="#">Maintenance</a> <ul> <li><a href="theater.php">Theater</a></li> <li><a href="director.php">Director</a></li> <li><a href="actor.php">Lead Actor/Actress</a></li> <li><a href="genre.php">Genre</a></li> <li><a href="schedule.php">Time Scheduling</a></li> <li><a href="price.php">Price</a></li> <li><a href="movie.php">Movie</a></li> <li><a href="viewer.php">Viewer</a></li> <li><a href="slideshow.php">Slide Show</a></li> </ul> </li> <li><a href="#">Transactions</a> <ul> <li><a href="reservation.php">Reservation</a></li> <li><a href="billing.php">Billing</a></li> <li><a href="waitlist.php">Wait list</a></li> </ul> </li> <li><a href="#">Utility</a> <ul> <li><a href="user.php">User</a></li> <li><a href="discount.php">Discount</a></li> </ul> </li> <li><a href="#">Reports</a> <ul> <li><a href="sale.php">Sales</a></li> </ul> </li> <li><a href="faq">Frequently Ask Questions</a></li> <li><a href="about.php">About Us</a></li> </ul> </div><!-- /content --> <!--</div> </div> --> </body> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Star Theater</title> <link rel="shortcut icon" href="images/favicon.ico" /> <link rel="stylesheet" media="screen" href="css/demo.css" /> <link rel="stylesheet" type="text/css" href="css/table.css"/> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> <!-- function confirmation() { var msg = "Are you sure you want to delete this lead actor/actress?"; var answer = confirm(msg); if (answer){ alert('Record successfully deleted!') document.frm.submit(); } } </script> <style> .highlighted { background:#090; } </style> </head> <body> <div id="content"> <div align="right"><a href="f.actor_add.php" > <img src="icons/ad.png" width="70px" height="70px" title="Add new actor" /></a> </div> <table class="filterable" id="bordered"> <thead> <tr> <th style="text-align:center">Lastname</th> <th style="text-align:center">Firstname</th> <th style="text-align:center">Date of birth</th> <th style="text-align:center">Contact number</th> <th style="text-align:center">Address</th> <th style="text-align:center">VIEW</th> <th style="text-align:center">EDIT</th> <th style="text-align:center">DELETE</th> </tr> </thead> <tbody> <tr><td>adf</td><td>jake</td><td style="text-align:right">07/11/2013</td><td style="text-align:right">321</td><td>das</td><td style="text-align:center"><a href="view_actor.php?ID=4"><img height="40" width="40" src="icons/view.png"/></a> </td> <td style="text-align:center"><a href="f.actor_edit.php?ID=4"><img height="40" width="40" src="icons/ed.png" /></a> </td> <td style="text-align:center"><a href="delete_actor.php?ID=4" onclick="confirmation();return false"> <img height="40" width="40" src="icons/xx.png" /></a> </td> </tr> </tbody> </table> <script type="text/javascript" src="js/tablesearch.js"></script> </div><!-- /content --> <div id="footer"> <label>© <a href="https://www.facebook.com/CodeWEBB.Design?fref=ts">CodeWEBB Design</a></label> |<a href="developers.php"> Developers</a> </div><!-- /footer --> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.