|All requests||>||same data, two tables.||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Mr.Simple Escabal - 2 years ago (2017-12-31)
i tried to insert the same id number to other table but its working . im new in php . would you please help me?
1. by zinsou A.A.E.Mo´se - 2 years ago (2017-12-31) Reply
Hi you said "i tried to insert the same id number to other table but its workin" so if it works where is the problem?Can you try to explain a little more what you are trying to achieve.
PHPCLASSES repository conceal many database handlers which are all very good and work very well .However, no matter the package you download to achieve the goal that you want to achieve you will need to know the last insert id to insert the exactely same data to another table.PHP provides natively in each database extension, a method or a function to get the last insert id.The package, i suggest here too. But the precision that you need to work with this value is that you may encountered some issue with the auto increment field.Once you are sure that you handle the case of auto-increment field there is no more limitations in inserting the same data in two tables...