1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
for ($num=1;$num<=20;$num++)
{
$valrub = 'res'.$i;
$msize = 'max_file_size_'.$valrub;
// SI msize EXISTE ET N'EST PAS NULLE, Rmaxsize EGALE AU $_POST
if (isset($_POST[$msize]) != ''){$Rmaxsize1[0] = htmlentities ($_POST[$msize], ENT_QUOTES);}
// SINON Rmaxsize EGALE à Rien
else {$Rmaxsize1[0] = 'rien';}
}
// INSERTION DANS LA BASE
mysql_query("INSERT INTO res_odj VALUES(
'',
'$res_odjref',
'$res_ref',
'$Kmaxsize1[0]',
'$Kmaxsize1[1]',
'$Kmaxsize1[2]',
(...)
'$Kmaxsize1[18]',
'$Kmaxsize1[19]')") or die(mysql_error()); |
Partager