code_junkie

insert into mysql problem

Nov 13th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. if($row['confirm']==0)
  2. {
  3. $query = "INSERT INTO opt (confirmed) values('0')";
  4. echo 'The user selected options has confirmed';
  5. }
  6.  
  7. INSERT INTO opt (name, confirmed) VALUES (?, ?)
  8.  
  9. INSERT INTO OPT (confirmed) VALUES (1)
Add Comment
Please, Sign In to add comment