code_junkie

how do I write this INSERT so that it works

Nov 13th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. INSERT INTO film_out
  2. (start_year, start_month, start_day, end_year, end_month, end_day)
  3. VALUES
  4. (?,?,?,?,?,?)
  5.  
  6. "INSERT INTO film_out (start_year, start_month, start_day, end_year, end_month, end_day)
  7. VALUES ('$year', '$month', '$day', '$year', '$month', '$day')"
  8.  
  9. INSERT INTO film_out (start_year, start_month, start_day, end_year, end_month, end_day)
  10. VALUES (YEAR(), MONTH(NOW()), DAYOFMONTH() + 1, YEAR(), MONTH(NOW()), DAYOFMONTH() + 1)
Add Comment
Please, Sign In to add comment