Hi,
I have a 2 MySQL table.
Table Number 1: (stored all countries) by the following fields:
1) country_id
2) country_name
Table Number 2: (stored user choices countries from table1) by the following fields:
1) user_id
2) user_countries
for example:
if you selected:
U.S.A
United Kingdom
Canada
Germany
etc...
I will store that's countries by this format: 1,2,3,4 etc... in user_countries field from table2.
My questions is:
I want to create a web page with checkbox elements and show all countries with checkbox element:
i.e:
[ ] Afghanistan
[ ] etc...
[ ] Zimbabwe.
How to checked checkbox element by user choices?
Thanks