php: get id for insert
Support QBN: Build your portfolio with Krop

php: get id for insert

  • Started
  • Last post
  • 3 Responses
  • Oldest
  • Newest
  • Popular
  • Active
  • ldww

    whats the trick to get the id for the field you just inserted into a database without having to query the db again?

    ldww
    Flag
  • JasonFarrell0

    mysql_insert_id()

    JasonFarrell 0Permalink
    UpvoteDownvote
    Dogear
    Flag
      Show [[ numHiddenNotes ]] more notesAdd Note
      SaveCancel
    • cosmo0

      http://www.php.net/manual/en/fun…

      cosmo 0Permalink
      UpvoteDownvote
      Dogear
      Flag
        Show [[ numHiddenNotes ]] more notesAdd Note
        SaveCancel
      • ldww0

        bingo.

        thanks

        ldww 0Permalink
        UpvoteDownvote
        Dogear
        Flag
          Show [[ numHiddenNotes ]] more notesAdd Note
          SaveCancel
        Login or Register to respond to this.
        PrevNext
        PrevNext
        © 1999-2026 QBN LLC.
        • Log in
        • Register
        • Broadcast
        • Filter
        • Jingle
        Made with ❤ by Krop Build a Portfolio Website