I concur with @Dormilich. You can set an onClick event on the checkboxes (suggest doing it by class name, not inline) that will use AJaX to submit the value of the checkbox (I’d suggest the ID) to an action page in the background that will alter the yes/no status in the database, and return a success/fail message to AJaX.
Allowing a user to “check out” might be problematic, as you’d have to check the “checked” status of the checkbox that is submitting the ID, and submit a yes/no along with the ID. Not too difficult.
guys is this better ? i changed the database check_in colon to boolean with 1 and 0, and if put a condition on top of the page to secelct only users that check_in=1, and at the function above i want to be able to update my table in database from 0 to1
I’d think you’ll get a syntax error as you close the opening script tag too early.
I guess it’d probably work, you’d have to make sure that update.php does the update and then re-draws your original page. Ajax would make it slicker, by not requiring that page re-draw.