Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[MYSQL, PHP] Creating a register field
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Obey" data-source="post: 365147" data-attributes="member: 40005"><p style="text-align: center"><strong>DISCLAIMER: THIS IS MY FIRST TIME TRYING TO USE MYSQL/PHP!</strong></p><p>Hi, I'm trying to add a column called 'country' to my 'users' table so that it's stored in the database and I can use it later on in an online users page. I thought the following SQL would work:</p><p>[code]</p><p>ALTER TABLE users</p><p>ADD column_name country</p><p>[/code]</p><p>But it returns this error: </p><p>"#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 'country' at line 2"</p><p></p><p>I'm sure this is pretty simple but I just can't figure it out. Can anyone please help? Thank you.</p></blockquote><p></p>
[QUOTE="Obey, post: 365147, member: 40005"] [CENTER][B]DISCLAIMER: THIS IS MY FIRST TIME TRYING TO USE MYSQL/PHP![/B][/CENTER] Hi, I'm trying to add a column called 'country' to my 'users' table so that it's stored in the database and I can use it later on in an online users page. I thought the following SQL would work: [code] ALTER TABLE users ADD column_name country [/code] But it returns this error: "#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 'country' at line 2" I'm sure this is pretty simple but I just can't figure it out. Can anyone please help? Thank you. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[MYSQL, PHP] Creating a register field
Top