I am making a form in custom framework in which when user enter 2 numbers e.g start number and ending number . the loop shows all numbers between those numbers . for example if user enter 0300 and 0309 the result will show
0300
0301
0302
0303
0304
0305
0306
0307
0308
0309
but it is showing
0300
301
302
303
304
305
306
307
308
309
Is there a problem with my loop ?
function did_ehmad_sec_submit($editForm) {
$count=0;
$start=$editForm['from_to'];
$end=$editForm['to_range'];
$desc=$editForm['description'];
for ($i=$start;$i<=$end;$i++)
{
$result = mysql_query("INSERT into did_number(did_number, description) VALUES ('$i','$desc')");
}
return $result;
}