Return IDs of inserted values PDO to MSSQL using ODBC
I need to get an array of id's of the subscribers added to the database within this function: function insert_test($pdo, $fullname, $email) { if ($SQL = $pdo->prepare("INSERT INTO subscribers ([dateAdded],[dateUpdated],[fullname],[email],[isActive]) VALUES (GETDATE(), GETDATE(), :fullname, :email, 1)")) { $SQL->bindValue(':fullname', $fullname, PDO::PARAM_STR); $SQL->bindValue(':email', $email, PDO::PARAM_STR); $SQL->execute(); return array('status'=> true); } else { return array('status'=> false); } } However I am stuggling with figuring out how to get the values and return them within the