Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR] 3 questions of FormBuilder
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

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
03-29-05 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:50 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.