Question : repeat region not working

I need to repeat the below code:

GetSQLValueString(isset($_POST[substr(strtolower(preg_replace('/[^a-zA-Z0-9]/', '', $row_rs_media_market3['market_name'])), 0, 15)]) ? "true" : "", "defined","'1'","''"),

so I add the below repeat region, but it makes my code go blank.

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));

See more of the code attached.

Why is this not working?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
$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"));

Answer : repeat region not working

Random Solutions  
 
programming4us programming4us