phpjay Posted July 11, 2011 Share Posted July 11, 2011 guys pa help naman i need a a selected ID first table and insert data from other table 1. first i need to select the ID of the table - this one is ok for me 2. when u select the ID of that table i need to insert a data to other table after that tomorrow i need to insert again a data here. 3. when i view all data must be view - this one is ok for me my problem is number 2 Quote Link to comment https://forums.phpfreaks.com/topic/241636-help/ Share on other sites More sharing options...
teynon Posted July 11, 2011 Share Posted July 11, 2011 1) It is really hard to understand what you are asking. 2) You should look up some php mysql tutorials, as it appears you have not even made an attempt to solve this problem yourself. Is this homework, might I ask? Quote Link to comment https://forums.phpfreaks.com/topic/241636-help/#findComment-1241101 Share on other sites More sharing options...
phpjay Posted July 11, 2011 Author Share Posted July 11, 2011 No this is not homework.. i mean i need to update the first table and the my 2nd table i need to insert is like a relationship i want to select the ID of fist table and insert into 2nd table which is the table1 ID is selected Quote Link to comment https://forums.phpfreaks.com/topic/241636-help/#findComment-1241106 Share on other sites More sharing options...
techrahul87 Posted July 11, 2011 Share Posted July 11, 2011 fetch id of first table store it in any variable and then insert this variable in your second table...........is this you want to do.... Quote Link to comment https://forums.phpfreaks.com/topic/241636-help/#findComment-1241108 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.