i was wondering if any one can help me with my php-mysql design

my current app. (is a more or less survey app) it let users store questions about targeting specific features in other products also saved in other table in database !

for example , a user can post a car: and then ask users about there opion in safty elements of his car.

car db : Id,brand,safety

> 
> brand = Fast   
> 
>  saftety = ABS=ABS (Anti lock braking System),DriverAirBag=Air bags   
> 
> 
> 
> 

questions db: ID,Question,Answer,Target,type

eg of data: 

> 
> Question:safety options you like  
> 
>  Answer:ABS=ABS (Anti lock braking System),DriverAirBag=Air bags"  
> 
>  target:saftey   
> 
>  type=checkbox   
> 
> 
> 
> 

problem is that to display questions stored, i have to .

> 
> 1) loop through all questions, echo Question and echo target in hidden input,  
> 
>  2) explode Answer field twice(1st w/ "," to get each answer and other with "=" to differ > between whats inside the database[0] and a user friendly text[1]  
> 
>  3) check type to chose display type (3 options checkbox,select,text)  
> 
>  4) set this display type of [0] and show [1] for user !!! (stupid i know:()  
> 
>  eg:
> 
> 
> < checkbox
>  value=$expolde[0]>$explode[1]
> 
> 
> 

All these steps make it very hard to maintain, not flexable by any mean cause display is embeded in code :(,

any ideas :) ?