Jump to content


Photo

I did something wrong with this query


  • Please log in to reply
1 reply to this topic

#1 who_cares

who_cares
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 09 December 2005 - 08:19 PM

I wrote the file [a href=\"http://who-cares.pastebin.com/457538\" target=\"_blank\"]here[/a] to select movies from a database.
I'm working on the code to add a new movie but it always dies:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(created, title, director, genre) INTO movies VALUES ([/quote]
Any ideas on how to fix this?

#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 09 December 2005 - 09:21 PM

it's INSERT INTO movies (created, title, director, genre) VALUES ...
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users