Jump to content

How to retain data (i.e color) on refresh or login of another user?


AnkitKansara

Recommended Posts

Hello,

I'm new to php..I am creating a meeting room application. Here the user logins into the system & selects a room.On the room page there is a table where an user can click on the specific time slot. A form appears where user needs to input the purpose of meeting & the data is saved in the db & the color of the selected <td> changes to orange.

Issue is that on refresh or another user login the <td> is back to original color i.e Bgcolor. I have attached the code filekarmauser.php. Thanks 

 

You have to ensure that whatever code you use to 'change' the color is being used again when the page is refreshed. Maybe add something ot your code that builds the page to look for certain data attributes as it builds the html and set the color then.

 

(Sorry - I don't look at non-posted code.)

Archived

This topic is now archived and is closed to further replies.

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