We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,654 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to insert foreign key into 2 tables in the same time

Hii All,
i'm newbie in this forum and in php
i got a problems, i was developing simple website
i had 3 tables in there
table request, table upload, and table feedback

which in id_request is foreign key in table upload and table feedback
1. how to update the id_request from table request to table upload and feedback in the same time, because i've tried with last_insert_id() was failed
2. i cannot update table upload with attachment, always failed to write in database
anyone can help me, need help

thanks before

2
Contributors
1
Reply
19 Hours
Discussion Span
1 Year Ago
Last Updated
2
Views
sungkono
Newbie Poster
2 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

show the code you used

diafol
Keep Smiling
Moderator
10,627 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0850 seconds using 2.69MB