Please HELP!!! computing the overdue in library system. using the time.This is the scenario. If library user borrow a book and take it out to the library. then He will bi given 24 hours to return the book. If the library user didnt return the in exactly time he will be charged 2php/hour. Thank in advance.

Recommended Answers

All 4 Replies

You're welcome. But what do you need? Can't you do the math?

I need a php code that will compute penalties. The library user will given 24hours to return the book. then if the library user did not return with in 24hours he will be charge 2 Philippine peso per hour . example if($time==24hour){$penalty='Ok'}'elseif($time>24hour)${penalty='2'}

Hmm the user borrows the entry is stored in database
When user returns it just check if time is greater than 24hr levy ($time-24)*2 penalty

else 0 penalty

> I need a php code ...
Start writing then. When you have problems, post the code and specific questions.

This is not a homework completion service.

commented: well said +8
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.