Jump to content

Text Type Error?


cyimking

Recommended Posts

Ok, so im not sure if this been answered or address yet, but when i go to register a user into my database, i get an error about my bio not having a default value? When the user register they only have to enter their email, username, and password.

 

My "bio" is a text type, and when i go to the users that i already have register and edit the bio part (in a edit_profile.php file, using the update function), it works fine.

 

I also notice that this only occurs when the selected columns are text/blog types.

Link to comment
Share on other sites

Mysql Version : 5.5

 

Code for my registration (the main part, where error is located)

$sql = mysql_query("INSERT INTO members (username, email , password, join_date) VALUES ('$username','$email','$protect_password', now())") or die (mysql_error());

 

Error Im receiving: "Field 'bio' doesn't have a default value".

 

Again: 'bio' is a text type field, which can not have a default value.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.