Forum Moderators: coopster
I am having a little problem here. What I have now is a list of items built from multiple tables from a database. Now I want to build a sql query based on the user selection. the problem is if all items were from the same table, that is easy, a checkbox array do. but here, I also need to know the table name that corresponds to each item/checkbox. is there any way to do it?
thanks a lot if someone can show me how to do this?
with the table names known, I can build a search query by going through each item.
I was thinking about two ways of doing this: one is using 'class', like
<input type='checkbox' name='ID[]' value='1' class='table1' />category 1
but i am not sure how to locate it.
another way is to use ID as a 2-d array, but I am not sure how. any idea?