PHP Classes
elePHPant
Icontem

same data, two tables.: i want my code to insert same ID no. to other table.

Recommend this page to a friend!
  All requests RSS feed  >  same data, two tables.  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

same data, two tables.

Edit

by Mr.Simple Escabal - 3 days ago (2017-12-31)

i want my code to insert same ID no. to other table.

This request is clear and relevant.
This request is not clear or is not relevant.

0

i tried to insert the same id number to other table but its working . im new in php . would you please help me?

  • 1 Clarification request
  • 1. by zinsou A.A.E.Moïse - 3 days 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.

    Ask clarification

    1 Recommendation

    PHP MySQL PDO class: Execute general purpose MySQL queries using PDO

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    0

    by zinsou A.A.E.Moïse Reputation 4715 - 3 hours ago (2018-01-03) Comment

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


    Recommend package
    : 
    :