RSS Forums RSS
Please support our MySQL advertiser: Programming Forums

selecting the day from the DATE field so that it includes a zero...

Join Date: Oct 2007
Posts: 194
Reputation: Venom Rush is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
Venom Rush's Avatar
Venom Rush Venom Rush is offline Offline
Junior Poster

Re: selecting the day from the DATE field so that it includes a zero...

  #8  
Nov 15th, 2007
Used this for putting the date back into the db so I didn't actually need to pull it out with the zero.

  1. if ($_GET['startDay'] = $row[0]) {
  2. $day = $_GET['startDay'];
  3. if ($day < 10) {
  4. $startDay = "0".$day;
  5. } else {
  6. $startDay = $_GET['startDay'];
  7. }
  8. } else {
  9. $startDay = $_POST['startDay'];
  10. }
Last edited by Venom Rush : Nov 15th, 2007 at 11:35 am.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:16 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC