Skip to content

Commit 218ad53

Browse files
authored
Update addUser.php
1 parent d5b40cb commit 218ad53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BACKEND/addUser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@
1515
{
1616

1717
//SQL query tu run against the DB for INSERT.
18-
$sql = "INSERT INTO TblUser (FirstName, LastName, UserName, Password, RoleID) VALUES('".$firstName."','".$lastName."','".$username."','".$password."', '".$roleId."'");
18+
$sql = "INSERT INTO TblUser (FirstName, LastName, UserName, Password, RoleID) VALUES('".$firstName."','".$lastName."','".$username."','".$password."', '".$roleId."')";
1919

2020
//Get Result
2121
$res = mysql_query($sql) or die("Failed to register user in database " .mysql_error());
2222

2323
//Check for returned results
2424
if($res){
2525
//Return json with successful transaction
26-
$response["TransCompleted"] = 1
26+
$response["TransCompleted"] = 1;
2727

2828
//echo the JSON response
2929
echo json_encode($response);
3030
}else{
3131
//Return json with successful transaction
32-
$response["TransCompleted"] = 0
32+
$response["TransCompleted"] = 0;
3333

3434
//echo the JSON response
3535
echo json_encode($response);
3636
}
3737

3838
}else{
3939
//Return json with successful transaction
40-
$response["TransCompleted"] = 0
40+
$response["TransCompleted"] = 0;
4141

4242
//echo the JSON response
4343
echo json_encode($response);

0 commit comments

Comments
 (0)