close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to go about doing this?

Thread began 11/09/2009 4:52 pm by jc1cell390254 | Last modified 11/18/2009 3:06 pm by jc1cell390254 | 3893 views | 8 replies

jc1cell390254

All forms seem to be working correctly right now with the register form creating my client record. The way my tables are setup, my projects records cannot exist without having a clientid attached to it.

The way the forms work is that first the client registers and is taken to the projects page (this works like a charm). The project form seems to work fine except that it can't create the record because it doesn't have the client id for it. It gives me this error:

"Cannot add or update a child row: a foreign key constraint fails (`zonapromo/Projects`, CONSTRAINT `fk_Projects_Clients1` FOREIGN KEY (`Clients_IDclient`) REFERENCES `Clients` (`IDclient`) ON DELETE NO ACTION ON UPDATE NO ACTION)"

I changed the foreign key setting for the project table hoping it would help and get this:

"Cannot add or update a child row: a foreign key constraint fails (`zonapromo/Projects`, CONSTRAINT `fk_Projects_Clients1` FOREIGN KEY (`Clients_IDclient`) REFERENCES `Clients` (`IDclient`) ON DELETE CASCADE ON UPDATE CASCADE)"

I don't know anything about database work and am really just getting into it. I'm wondering if a php session would allow me to retrieve the client id from the database and have a field in the project form retrieve the data from the session. In turn, the project from would send the clientid into the project table. I have been looking into the WA Cookies Extension and think it can be done, I just can't find how to retrieve the data from the database into the session variable.

Any help would be great.

jc

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...