Re: Stroring html form settings

Поиск
Список
Период
Сортировка
От Reece Hart
Тема Re: Stroring html form settings
Дата
Msg-id 1222448507.6516.38.camel@snafu
обсуждение исходный текст
Ответ на Re: Stroring html form settings  (Dianne Yumul <dianne@wellsgaming.com>)
Ответы Re: Stroring html form settings  (Dianne Yumul <dianne@wellsgaming.com>)
Список pgsql-general
On Fri, 2008-09-26 at 09:23 -0700, Dianne Yumul wrote:
If the structure of each report did not differ this would work great 
but unfortunately it does.

Diane-

Would an EAV model work? I'm thinking something like <form,field,value>. For example:
formA,ckbox1,true
formA,input1,initial value
formB,textarea1,enter your long comment here

You could easily extend this to <user,form,field,value>, or normalize it as you see fit.

Another possibility is to use hstore hashes for form fields/values. See
http://www.postgresql.org/docs/8.3/static/hstore.html

Do either of those suffice?

-Reece

-- 
Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0

В списке pgsql-general по дате отправления:

Предыдущее
От: Martin Gainty
Дата:
Сообщение: Re: Stroring html form settings
Следующее
От: Dianne Yumul
Дата:
Сообщение: Re: Stroring html form settings