in reply to Inserting values into a MySQL database
I believe this is a problem in your SQL syntax, not your Perl. In short, your SQL statement should be:
INSERT INTO Questions(Question,Answer_A, Answer_B, Answer_C, Answer_D, Answer_E, Correct_Answer) VALUES(?,?,?,?,?,?,?)
I claim no particular in-depth knowledge of MySQL, however, so I may be mistaken.
Update: http://www.sqlcourse.com may be useful in improving one's SQL-fu.
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Inserting values into a MySQL database
by dws (Chancellor) on Jan 14, 2002 at 06:15 UTC | |
|
Re: Re: Inserting values into a MySQL database
by gav^ (Curate) on Jan 14, 2002 at 06:39 UTC |