더 나은 프로그래머가 되자

insert한 최종값 가져오기 mysql_insert_id 본문

언어/PHP

insert한 최종값 가져오기 mysql_insert_id

greathuman 2015. 7. 30. 17:12

$idx = mysql_insert_id();
$idx = mysqli_insert_id($conn);

 

방금 DB에 입력한 값의 최종 index번호를 가지고 온다.

Comments