For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2005 > Re: [PEAR] 3 questions of FormBuilder









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] 3 questions of FormBuilder
Justin Patrin

2005-03-29, 3:58 pm

On Tue, 29 Mar 2005 10:42:51 +0800 (CST), digit Shine
<digit_shine@yahoo.com.cn> wrote:
> 1 Does processForm() insert/update the crossLinks DO?


Of course.

> 2 My crossLink DO has a two fields primary key, shall
> it be detected. In my case, error message shows:
> FormBuilder: Primary key not detected - storing data
> not possible.


I understand this question as a crossLink table's Primary Key could
easily be the combination of the two foreign keys. However, since
DB_DO doesn't wupport multi-field keys and FormBuilder also hasn't
been build with this in mind we still require a single-column primary
key. I would suggest, as always before, an auto incremented id primary
key with an additional unique constraint on the two foriegn keys.

> 3 If the answer of the 1st question is NO, how can I
> identify to insert or update in postProcessForm()?
>=20
> Thx
>=20
> bitShine
>=20
> ________________________________________
_________________
> Do You Yahoo!?
> 150=CD=F2=C7=FAMP3=B7=E8=BF=F1=CB=D1=A3=
AC=B4=F8=C4=FA=B4=B3=C8=EB=D2=F4=

=C0=D6=B5=EE=CC=C3
> http://music.yisou.com/
> =C3=C0=C5=AE=C3=F7=D0=C7=D3=A6=D3=D0=BE=
A1=D3=D0=A3=AC=CB=D1=B1=E9=C3=C0=

=CD=BC=A1=A2=D1=DE=CD=BC=BA=CD=BF=E1=CD=
BC
> http://image.yisou.com
> 1G=BE=CD=CA=C71000=D5=D7=A3=AC=D1=C5=BB=
A2=B5=E7=D3=CA=D7=D4=D6=FA=C0=A9=

=C8=DD=A3=A1
> http://cn.rd.yahoo.com/mail_cn/tag/....com/event/mai=

l_1g/
>=20
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
>=20



--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com