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="Markshall" data-source="post: 365154" data-attributes="member: 1872"><p>VARCHAR means varied-characters I think, so it is just a normal string -- consisting of numbers + letters and other symbols like periods, commas, etc</p><p></p><p>255 is the maximum length of the string. I'm sure VARCHAR's max-length is 255 though, so if you wanted more, you'd have to use TEXT or LONGTEXT, maybe BLOB. There's more but I'm unsure as to which is the right to use</p><p></p><p>NOT NULL means it can't be empty when a record is being inserted into the database.</p></blockquote><p></p>
[QUOTE="Markshall, post: 365154, member: 1872"] VARCHAR means varied-characters I think, so it is just a normal string -- consisting of numbers + letters and other symbols like periods, commas, etc 255 is the maximum length of the string. I'm sure VARCHAR's max-length is 255 though, so if you wanted more, you'd have to use TEXT or LONGTEXT, maybe BLOB. There's more but I'm unsure as to which is the right to use NOT NULL means it can't be empty when a record is being inserted into the database. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[MYSQL, PHP] Creating a register field
Top