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
https://forums.phpfreaks.com/topic/258685-text-type-error/
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
https://forums.phpfreaks.com/topic/258685-text-type-error/#findComment-1326124
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.