Jump to content

Recommended Posts

Hi,

We currently have a booking system where people can book single resources, however we now need to develop the system further and I would just like your opinion on this and if there are tutorials, examples I can look at to tailor my system.

 

I want the database to have a figure i.e. 30 and the use clicks book and the system asks how many they want to book and it deducts it from the number so if the user books 10 cameras it leaves 20 in the database for another user to book the remainder.

 

I hope this makes sence and someone is able to guide me.

 

Regards,

Stuart

Link to comment
https://forums.phpfreaks.com/topic/266587-phpmysql-inventory-system/
Share on other sites

Table resources: id, name, amount

Table bookings: id, resource_id, amount_booked, booking_date, etc.

 

Example:

You have a resource with id 1, name is Camera XY, amount is 30.

Someone already created a booking of resource_id = 1 and amount_booked = 10.

Execute a query which sums up amount_booked from table bookings where resource_id = 1 and you're done

Hi,

 

Thank you both for your replies, much appreciated. It has certainly given me a point in the right direction, and I may be able to actually start this, this year (Was demoted to receptionist today :( ).

 

At the minute all of the kit is asset tagged, and we ask staff to fill in the form when they take the kit. I want to develop it so that the admins/technicians can check the kit and mark it back in the system as being returned OK and that sort of thing. I will start the front end first though.

 

Thanks again,

Stuart

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.