[Solved] INSERT row from another table using php PDO

Ok, so the issues you had/have were: $barCode = $GET[‘id’]); should have been $barCode = $GET[‘id’];, and possibly even $_GET[‘id’]; Your SELECT query selects the same field twice (SELECT Brand, Description, >Price<, Size, >Price<) You’re also inserting in the same field twice: INSERT INTO adstable (Brand, Description, >Price<, Size, >Price< You’re vulnerable to injection attacks, … Read more