My data is not fully getting inserted into database
function()
{
$a='abcd(a,b,c,d,e)';
$sql="Insert into tablename(fieldname) Values('".$a."')";
$res=mysql_query($sql);
}
Value is getting into the database but not fully i.e abcd(a.
My data is not fully getting inserted into database
function()
{
$a='abcd(a,b,c,d,e)';
$sql="Insert into tablename(fieldname) Values('".$a."')";
$res=mysql_query($sql);
}
Value is getting into the database but not fully i.e abcd(a.
The column in your datase is not large enough to hold the data you are trying to insert.
You would probably have noticed this if you had included the structure in your question (hint, next time do incllude the structure).