Finally had a chance to add this code - and yes it all works as expected! - Thanks for that - Hopefully I'm nearly done with this project - I will be donating once i'm done like I said earlier, You and your scripts ar superb. ps I just added a background color which makes the date stand out even mor...
Is it possible to define a Different color for id_item that we are editing in the calender - IE - I am working on room#23 that has a bookingID of 10 - Now room#23 has loads of bookings assigned to it - But I would like to see the bookings for Booking iD in a different color making it easier to find ...
Success - It all works as expected - tha's to say "(I cannot alter a booking which is not the booking that i am working with now...held in my session.)" one piece of code that causes errors in display if(array_key_exists($this_date,$booked_days)){ //echo "<br>".$booked_days[$this...
Yes that's correct - Sorry for the confusion there - Now you say I should change the code above - Does that require any changes previously mentioned or is the code above all that needs changing?
Only dates where bookingID(in the table) is equal to the bookingID (in my session) can be modified - However I would still need to see what dates are unavailable for the id_item(in my case that is a room)
Shall I proceed with your code and take it from there?
OO This gets more interesting - Ok Given that I now have my bookingID available when I need it - Would there be a fairly simple way to prevent any deletions that were !=bookingID by either simply making that box not clickable or a warning (Alert) telling the user it's not possible? PS. When my proje...
Hi - I think that code will be of use to loads of people - for myself - I have now done this setting a session with bookingID - This way I am dynamic and only need to add one peice of info to the insert statement (also the session start stuff).
Actually - I was attempting to add it via the function,
I have tried you code but it's not picking up the bookingID - Just incase i'm missing the blindingly obvious - where should I have placed that hidden field in your post?