I am getting a confusing error message, I have done some googling an can't find a good solution.
My error message is :
Fatal error: Call to undefined function mssql_query() in C:\xampp\htdocs\dbf\database_files\AddUsers1.php on line 24
The code that is generating this error is :
Expand|Select|Wrap|Line Numbers
- $q1 = mssql_query("INSERT INTO users (name, surname, dob, status) VALUES ('$name', '$surname', '$birthdate', '$status') SELECT
- SCOPE_IDENTITY() AS [SCOPE_IDENTITY]");
- $r = mssql_fetch_assoc($q1);
- $insert_id = $r['SCOPE_IDENTITY'];
- echo $insert_id;
Also a second question, could someone please provide a explanation as to how SCOPE_IDENTITY() works because Google has not been very helpful in giving me an explanation I can understand clearly.
Thank you for any and all help,
Avatar19