$ Seat_partsarray (& #039; pair leg & #039;, & #039; pair leg & #039;, & #039; pair leg & #039;, & #039; legs & #039;, & #039; chair back & #039;, & #039; handrail & #039;, & #039; handrail & #039 ;); {code...} in the database ...} rule: {code ...} question: {code ...} $ seat_parts = array ('twenty leg ', 'chair back', 'handrails', 'handrails ');
Database
Seat_build record the progress of the user chair user_id total_step (number of steps required to complete the Chair) done_step (number of completed steps/Part) the seat_build_record table is used to record related help and split records user_id to_user_id (associated with user_id in seat_build) part_id (corresponding to the index in $ seat_parts) type (-1 indicates split 1 indicates help)
Rules:
After the seat is completed, part of the split function cannot be selected.
Problem:
For a user in seat_build, how can I quickly obtain the index of the corresponding seat section for help and removal? The idea or specific code can be used.
Reply content:
$ Seat_parts = array ('twenty leg ', 'chair back', 'handrails', 'handrails ');
Database
Seat_build record the progress of the user chair user_id total_step (number of steps required to complete the Chair) done_step (number of completed steps/Part) the seat_build_record table is used to record related help and split records user_id to_user_id (associated with user_id in seat_build) part_id (corresponding to the index in $ seat_parts) type (-1 indicates split 1 indicates help)
Rules:
After the seat is completed, part of the split function cannot be selected.
Problem:
For a user in seat_build, how can I quickly obtain the index of the corresponding seat section for help and removal? The idea or specific code can be used.