Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

lastinsertId php

//lastInsertId() =>returens the id of the last inserted row.

$sql="query";
$dbh="DBC";
$stmt=$dbh->praper($sql);
$stmt->excute();
$id =$dbh-> lastinsertId();
$dbh=null;
 
PREVIOUS NEXT
Tagged: #lastinsertId #php
ADD COMMENT
Topic
Name
7+4 =