Forums

[resolved] mysql_insert_id() and WP (2 posts)

  1. husar
    Member
    Posted 4 years ago #

    I am creating a plugin and for the first time I am creating tables and inserting data. I have all that work but now I want to validate the insert was successful.

    Can I use mysql_insert_id() or is there something equivalent I need? I tried mysql_insert_id() last night without much luck. I would like to avoid just doing another select statement if possible. But that is always an option I guess.

    Cheers

  2. husar
    Member
    Posted 4 years ago #

    Well, I guess if I was using an auto increment field it might work.

    My bad.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.