| @@ 98-101 (lines=4) @@ | ||
| 95 | $query = "INSERT INTO register VALUES( |
|
| 96 | null, '$email', '$username', '$password' |
|
| 97 | )"; |
|
| 98 | if (!$this->connect->query($query)) { |
|
| 99 | return json_encode( |
|
| 100 | [ |
|
| 101 | "Error" => "You are not registered, " . $this->connect->error |
|
| 102 | ] |
|
| 103 | ); |
|
| 104 | } |
|
| @@ 113-116 (lines=4) @@ | ||
| 110 | '$userId', '$name', '$email', '$username', '$mob' |
|
| 111 | )"; |
|
| 112 | ||
| 113 | if (!$this->connect->query($query)) { |
|
| 114 | return json_encode( |
|
| 115 | [ |
|
| 116 | "Error" => "You are not registered, " . $this->connect->error |
|
| 117 | ] |
|
| 118 | ); |
|
| 119 | } |
|