Why don't you try this.
Make sure the database table is the type you wish to use and then just use
$sth->bind_param(1,"$value")
this should place the value of $value into the database field as long as the database field is of a type to handle that input.