close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error when updating MySQL entry

Thread began 3/12/2012 9:15 pm by diana.tan436970 | Last modified 3/13/2012 11:20 pm by diana.tan436970 | 3784 views | 2 replies |

diana.tan436970

Error when updating MySQL entry

Hi,

I have created a form to be able to update data from the MySQL database. When I submit the form, I got these error messages:

Notice: Undefined offset: 10 in /clientdata/zeus-dynamic-1/e/c/ecloyalty.biz/www/WA_DataAssist/WA_AppBuilder_PHP.php on line 134

Notice: Undefined offset: 1 in /clientdata/zeus-dynamic-1/e/c/ecloyalty.biz/www/WA_DataAssist/WA_AppBuilder_PHP.php on line 136

Notice: Undefined offset: 1 in /clientdata/zeus-dynamic-1/e/c/ecloyalty.biz/www/WA_DataAssist/WA_AppBuilder_PHP.php on line 136

Notice: Undefined offset: 2 in /clientdata/zeus-dynamic-1/e/c/ecloyalty.biz/www/WA_DataAssist/WA_AppBuilder_PHP.php on line 137

Notice: Undefined offset: 2 in /clientdata/zeus-dynamic-1/e/c/ecloyalty.biz/www/WA_DataAssist/WA_AppBuilder_PHP.php on line 137
Cannot add or update a child row: a foreign key constraint fails (`ecloyalty_ecloyalty_biz`.`tblproject`, CONSTRAINT `fk_uname2` FOREIGN KEY (`uname`) REFERENCES `tbluser` (`uname`) ON UPDATE CASCADE)


Please help me to look at this. I have no idea on how to fix this issue. I have attached the files as well.

Thank you!

Attached Files
files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

for the undefined index errors, change line 154:

php:
$WA_comparisonStr = " LIKE | LIKE | = | LIKE | LIKE | = | = | = | LIKE | LIKE";



php:
$WA_comparisonStr = " LIKE | LIKE | = | LIKE | LIKE | = | = | = | LIKE | LIKE | LIKE";




the last error though:
Cannot add or update a child row: a foreign key constraint fails (`ecloyalty_ecloyalty_biz`.`tblproject`, CONSTRAINT `fk_uname2` FOREIGN KEY (`uname`) REFERENCES `tbluser` (`uname`) ON UPDATE CASCADE)


is being caused by a foriegn key constraint that is set in your database that is failing.

Sign in to reply to this post

diana.tan436970

Thanks a lot Jason! It works now.

Sign in to reply to this post

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...