Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 2nd, 2003, 11:07 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
simple but need a bit of help

Doesn't seem to work stop and return back
if begin_time <= end_time

php Code:
Original - php Code
  1.  
  2. if ($prv_begin_time <= $prv_end_time)
  3. {
  4. header("Location: login.html?C=[ Opps..] That time won't work Try again");
  5.     }

Reply With Quote
  #2  
Old October 3rd, 2003, 12:12 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: simple but need a bit of help

In what context are you using the condition? a littls background might be helpful

Reply With Quote
  #3  
Old October 3rd, 2003, 04:34 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: simple but need a bit of help

Yes that seems to do that! Actually what do you want to do?

Reply With Quote
  #4  
Old October 6th, 2003, 02:37 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: simple but need a bit of help

$prv_begin_time / $prv_end_time are two numbers representing time in hours.
What I need it to do is look at $prv_begin_time and make sure that it is smaller than $prv_end_time. If it is keep moving down the script part otherwise just return back to the main page and say Opps

I don't want someone selecting

Begin time of 1 Am and end time of 12 Am

it should be 12 am (0) and 1 am (1)


Reply With Quote
  #5  
Old October 6th, 2003, 02:49 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: simple but need a bit of help

The way your if statement is set up, you are seeing if the begin time is less than or equal to the ends time, if it is, return to the login page. try using >= (greater than or equal to)as the operator in the if statement.

Reply With Quote
  #6  
Old October 6th, 2003, 03:00 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: simple but need a bit of help

Boy that is imbrassing. I try harder to think next time, before I post. Thanks for the help

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > simple but need a bit of help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway