Current location: Hot Scripts Forums » Programming Languages » PHP » show me the code please.........


show me the code please.........

Closed Thread
  #1 (permalink)  
Old 07-07-03, 08:04 AM
fui_koh fui_koh is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
show me the code please.........

hi,
the case is php with mysql.
coding for the calculation.
e.g. a) an employee has 18 days leave a year...
b) an employee take leave from 3/6/03 to 6/6/03 ( count the duration and the balance of the leave).....

<in my web site exmple>

from date: xx/xx/xx (empty field)
to date : xx/xx/xx (empty field)

duration : <result>
balance : <result>

[submit] <button>
after insert the ‘ from date ‘ and ‘ to date’ and click submit, the duration and the balance of leave will automatically show …
  #2 (permalink)  
Old 07-07-03, 11:47 AM
BdSBB BdSBB is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Georgetown, TX
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
$duration = floor(($from_date - $to_date) / 86400);

I don't quite understand the balance part.
__________________
-- BdSBB
  #3 (permalink)  
Old 07-07-03, 11:56 AM
fui_koh fui_koh is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
ok nvm .....
its enough alteady....
anywhere thank you
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code to edit a text file mdhall Script Requests 12 12-23-10 04:03 AM
protecting code in PHP ckb PHP 12 01-02-04 08:53 AM
Validation code for site membership kNIGits The Lounge 1 07-28-03 02:41 AM
please show me the code....... fui_koh Script Requests 1 07-07-03 01:04 PM
something wrong with this code superman PHP 3 07-06-03 10:55 PM


All times are GMT -5. The time now is 10:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.