SyntaxFix
Write A Post
Hire A Developer
Questions
Sure, what do you want to use for the gid? a static value, PHP var, ...
A static value of 1234 could be like:
INSERT INTO courses (name, location, gid) SELECT name, location, 1234 FROM courses WHERE cid = $cid