I form that edits a table in the database. However a user may not selcect an image so if they dont I do not want to update that field. I have tried a couple of ways to do this but none work. Is there an easy way? Thanks.
if ($_POST["image"]!=='') {
$image= "image=%s";
$imageValue = "GetSQLValueString(".$_POST['image'].", 'text'),";
};
$insertSQL = sprintf("UPDATE taxi SET name=%s, taxi_link=%s, ". $image." WHERE id=%s",
GetSQLValueString($_POST['name'], "text"),
GetSQLValueString($_POST['link'], "text"),
$imageValue,
GetSQLValueString($_POST['id'], "int"));
,aftertaxi_link=%s. Remove that,and change 2nd row to$image= ", image=%s";.