![]() |
query synatx
Code:
CREATE TABLE IF NOT EXISTS users (Quote:
|
Try this:
Code:
CREATE TABLE IF NOT EXISTS `users` ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT , |
Thank you :)
|
The reason your query failed is that GROUP is a reserved word in MySQL. Be careful in your queries down the road as they will all require the backticks surrounding that field name.
You may wish to change this now to save headaches later. |
This is why I always use ticks on my queries, always. It is bad practice to use a keyword for a name, but it just makes things more bug-proof.
|
OMG LOL i totaly forgot about GROUP.
Sorry it has been a hectic week. been 2 weekends working on my bathroom, and working double time on other side projects during the week, after coming home from working my 9-5.... I would have used ticks ( ` )'s but the server i'm using these scripts on doesn't like them. |
I'd suggest replacing group with groups or with grp, then the requirement to add ticks goes away.
|
Querys been fixed.
now i just need to set up some functions to pull and display my articles. |
| All times are GMT. The time now is 05:42 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0