Guest User

Untitled

a guest
Apr 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $query = "INSERT INTO products_configurations (product_id, cuts)
  2. VALUES (SELECT pro.id FROM pages AS p
  3. JOIN products AS pro ON pro.page_id = p.id WHERE p.id = $pageid, $combination)";
  4.  
  5. $pageid = 21605
  6. $combination = "40 - Red"
  7.  
  8. You have an error in your SQL syntax;
  9. check the manual that corresponds to your MySQL server version
  10. for the right syntax to use near
  11. 'SELECT pro.id FROM pages AS p
  12. JOIN products AS pro ON pro.page_id = p.id WHERE p' at line 1
Add Comment
Please, Sign In to add comment