Welcome Guest, Not a member yet? Register   Sign In
How do you loop an upload data to a table without entering empty fields?
#3

[eluser]TheFuzzy0ne[/eluser]
Any reason you can't use a foreach loop instead? Then you only loop through however many file are there. Or you make your for loop a bit like this:

Code:
for ($i = 1; $i <= count($_FILES); $i++)

But really, that's what a foreach loop is for.


Messages In This Thread
How do you loop an upload data to a table without entering empty fields? - by El Forum - 05-12-2009, 06:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB