Home php PHP SAFEMYSQL CLASS Get Insert ID

PHP SAFEMYSQL CLASS Get Insert ID

Author

Date

Category

How to use this class get an insert query ID?

$ sql = "insert into domains set name =? S, License =? S, EndDate =? S, Session =? s ";
$ DB- & GT; Query ($ SQL, $ Name, $ Code, $ EDDS, "Begin");
DIE ($ db- & gt; insert_id);

Answer 1, Authority 100%

Method is called InsertID ()

die ($ db- & gt; insertid ());

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions