I want to update some vars $grade in grade table if their ID matches the IDs selected in another table:
SELECT ID
FROM posts
WHERE post_parent = %d, $parent_id
With the IDs I got from the above query, now, how to update vars in grade column in this grade table?
ID | user_id | grade
The best is to make the two step in one– get IDs and update grade in one code.
1 Answer