File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
2.0 PHP Server programming - Stored procedures, Transactions, and UDFs Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 82
82
if ($ stmt1 && $ stmt2 ) {
83
83
sqlsrv_commit ($ conn );
84
84
?>
85
- <h1> Transaction was commited </h1>
85
+ <h1> Transaction was committed </h1>
86
86
87
87
<?php
88
88
} else {
Original file line number Diff line number Diff line change 26
26
27
27
$ userToUpdate = 'Nikita ' ;
28
28
$ tsql = 'UPDATE TestSchema.Employees SET Location = ? WHERE Name = ? ' ;
29
- $ params = ['Sweeden ' , $ userToUpdate ];
29
+ $ params = ['Sweden ' , $ userToUpdate ];
30
30
echo ('Updating Location for user ' . $ userToUpdate . PHP_EOL );
31
31
32
32
$ getResults = sqlsrv_query ($ conn , $ tsql , $ params );
38
38
echo ($ rowsAffected . ' row(s) updated: ' . PHP_EOL );
39
39
sqlsrv_free_stmt ($ getResults );
40
40
41
- // Delte Query
41
+ // Delete Query
42
42
$ userToDelete = 'Jared ' ;
43
43
$ tsql = 'DELETE FROM TestSchema.Employees WHERE Name = ? ' ;
44
44
$ params = [$ userToDelete ];
Original file line number Diff line number Diff line change 26
26
27
27
$ userToUpdate = 'Nikita ' ;
28
28
$ tsql = 'UPDATE TestSchema.Employees SET Location = ? WHERE Name = ? ' ;
29
- $ params = ['Sweeden ' , $ userToUpdate ];
29
+ $ params = ['Sweden ' , $ userToUpdate ];
30
30
echo ('Updating Location for user ' . $ userToUpdate . PHP_EOL );
31
31
32
32
$ getResults = sqlsrv_query ($ conn , $ tsql , $ params );
38
38
echo ($ rowsAffected . ' row(s) updated: ' . PHP_EOL );
39
39
sqlsrv_free_stmt ($ getResults );
40
40
41
- // Delte Query
41
+ // Delete Query
42
42
$ userToDelete = 'Jared ' ;
43
43
$ tsql = 'DELETE FROM TestSchema.Employees WHERE Name = ? ' ;
44
44
$ params = [$ userToDelete ];
Original file line number Diff line number Diff line change 26
26
27
27
$ userToUpdate = 'Nikita ' ;
28
28
$ tsql = 'UPDATE TestSchema.Employees SET Location = ? WHERE Name = ? ' ;
29
- $ params = ['Sweeden ' , $ userToUpdate ];
29
+ $ params = ['Sweden ' , $ userToUpdate ];
30
30
echo ('Updating Location for user ' . $ userToUpdate . PHP_EOL );
31
31
32
32
$ getResults = sqlsrv_query ($ conn , $ tsql , $ params );
You can’t perform that action at this time.
0 commit comments