| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | MYSQL error hey i am getting this error: Code: Documentation #1064 - 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 'CREATE TABLE `messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `from` varchar' at line 7 PHP Code: |
| |
| | #2 (permalink) |
| Senior Member | if you are trying to execute all 3 together which it looks like you are you need to put a ; after each query:- PHP Code: |
| |
| | #3 (permalink) | |
| Domains my Dominion | Quote:
FROM is a reserved keyword in SQL. Avoid using reserved keywords in field names or expressions and you'll be fine
__________________ Buy now - MassDeveloper.com $500 | |
| |
| | #4 (permalink) | ||
| Senior Member | Quote:
The following is taken from THIS page from the mysql manual:- Quote:
Last edited by filth@flexiwebhost; 12-31-2006 at 09:38 AM. | ||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |