$updateSQL = sprintf("UPDATE media_group SET name=%s, selectech_group_code=%s, supplier_id=%s, brand_id=%s, media_category_id=%s, solventuvinkjet=%s, notes=%s WHERE id=%s",
GetSQLValueString($_POST['name'], "text"),
GetSQLValueString($_POST['selectech_group_code'], "text"),
GetSQLValueString($_POST['supplier_id'], "text"),
GetSQLValueString($_POST['brand_id'], "text"),
GetSQLValueString($_POST['media_category_id'], "text"),
do {
GetSQLValueString(isset($_POST[substr(strtolower(preg_replace('/[^a-zA-Z0-9]/', '', $row_rs_media_market3['market_name'])), 0, 15)]) ? "true" : "", "defined","'1'","''"),
} while ($row_rs_media_market3 = mysql_fetch_assoc($rs_media_market3));
GetSQLValueString($_POST['id'], "int"));
|