[eluser]freshigniter[/eluser]
1 > table:registration
-----------------------------------
regid | indtype | name |password
----------------------------------
1 |1,2 | obama | 12rt56
----------------------------------
2 |2,3 | pinto | 14sd35
----------------------------------
2 > table:users
-------------------------------------
id | registeredid | name |password
-------------------------------------
1 | 1 | obama | 12rt56
-------------------------------------
2 | 2 | pinto | 14sd35
-------------------------------------
3 > table:industrytype
---------------------------
iid | name |
---------------------------
1 |computers |
---------------------------
2 |electronics|
---------------------------
3 |footwears|
---------------------------
*******************************************************
flow of events->registration->login.
1)
a new user register himself, his name,password and type of industry he selects from
drop down[example: name=computers,value=1(only value of industry type)] will be stored in the table registration.
2)
the drop-down options to select in the registration form[view] are coming through the table 3 [industry type].
3)
the table 2[users] used to login.
during registration, the same values(as in registration table) will be passed to table 2 [table:users].
are except industry type(indtype)
WHAT I WANT
1) WHEN A USER logins [say obama]
in his landing page[named as "normaluser" in views] he should be shown as "your industries are computers,electronic"
2)WHEN A USER logins [say pinto]
in his landing page he should be shown as "your industries are electronics,footwears".
thats it. :cheese:
WHAT I HAVE
1)a controller named "users"
2)a model named "users_model"
3)a view named "normal user"
help me please.