Hi I'm trying to update a record where column name is draw.
$draw = "<a href=/uploads/draw/".$_FILES['userfile']['name']." target=_blank>draw</a>";
$conn = db_connect();
$query = ("UPDATE competition SET draw = '$draw' WHERE id ='$ud_id' ");
$result = $conn->query($query);
When I echo $draw the variable is loaded and there.
When I echo $result it shows 1 so it believes the function is complete.
However the record fiield is still null.
Not sure what I'm missing.