I am trying to send some values to a database all of which works fine until I try to add the last value being the "$desc" value. There is one more column after the desc column in the database but it allows nulls to be passed. There are also columns inbetween that are not updated but all of those also have default values setup. this is the code I am using....(desc is a text box inside my form allowing upto 255 characters, I have tried configuring it as text, blob and varChar in Mysql with no success on the insertion when $desc is included in the statement.
function addDet($uid, $pwd, $url, $abilt, $self, $group, $desc)
{
$sql = "insert into table1 (uid, pwd, url, abilt, self, agegroup, desc) values ('" . AddSlashes($uid) . "','" .
AddSlashes($pwd) . "','" . AddSlashes($url) . "','" . $sex . "','" . $self . "','" . $group . "','" . addslashes($desc) . "')";