06.04.2014, 06:57
Код:
new str[128]; format(str,128,"UPDATE table_name SET wep0='0', wep1='0', wep2='0', wep3='0', wep4='0', wep5='0', wep6='0',........ wep12='0' WHERE username='%s'",name); mysql_query(str);
Код:
for(new i=0; i < 13; i++) { new str[128]; format(str,128,"UPDATE table_name SET wep%d='0' WHERE username='%s'",i,name); mysql_query(str); }