S
S
sunnyrio2018-05-29 15:23:39
PHP
sunnyrio, 2018-05-29 15:23:39

How to get the id of a newly inserted new row in a table?

How to get the id of a newly inserted new row in a table?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stimulate, 2018-05-29
@sunnyrio

mysql_insert_id();

K
krypt3r, 2018-05-29
@krypt3r

php.net/manual/en/pdo.lastinsertid.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question