Forum Moderators: coopster
i have no experience with arrays what-so-ever, but i think this is what i might need, but i dont know where to start.
i have a form that needs to input tax into a mysql db.
the form has company 1 to 5 and 3years ago, 2years ago, 1years ago, this year, next year.
so is it possible to just have one field for tax which will hold upto the five companies and the 5 values of tax.
this form is obviously alot bigger than just one entry of tax, so i have to create 45 fields per company(9 types of entires x 5 years x 5 companies) so i dont want to end up with 225 fields in the db just for this tax part - not inc the rest of the form.
any help would be great - remember i have never touch arrarys so any code snippets please explain.
thanks in advance
Sounds like more of a database design issue here as opposed to how to setup a multi-dimensional array. Have you considered that instead? If you want to know how to setup arrays in an HTML form for use with PHP, this FAQ on PHP and HTML [php.net] will be enlightening.