PHP Classes

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

Picture of Mr.Simple Escabal by Mr.Simple Escabal - 7 years 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. Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse - 7 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.

    Ask clarification

    1 Recommendation

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

    This class can execute general purpose MySQL queries using PDO.

    It can connect to a given MySQL database server using PDO and executes several types of SQL queries. Currently it can:

    - Insert, update and delete table records with given values
    - Execute arbitrary prepared queries
    - Execute queries and return results in arrays or objects
    - Get the last inserted table record identifier
    - Check if a given table record exists with a given column value
    - Disable foreign key check
    - Get the average, sum, maximum or minimum value of a given table column
    - Retrieve the column values of a given table
    - Retrieve table records as key value-pair associative arrays
    - Get a single value of a given table record
    - Get a given table column list
    - Get a given database tables list
    This recommendation solves the problem.
    This recommendation does not solve the problem.

    0

    Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse Reputation 6835 - 7 years 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
    : 
    :