@@ -33,18 +33,18 @@ |
||
| 33 | 33 | if($para == True) |
| 34 | 34 | { |
| 35 | 35 | $this->query = "SELECT * from login where login_id = '$details'"; |
| 36 | - } |
|
| 37 | - else |
|
| 36 | + } else |
|
| 38 | 37 | { |
| 39 | 38 | $this->query = "SELECT * from login where username = '$details'"; |
| 40 | 39 | } |
| 41 | 40 | $this->result = $this->connect->query($this->query); |
| 42 | - if($this->result->num_rows > 0) // if true |
|
| 41 | + if($this->result->num_rows > 0) { |
|
| 42 | + // if true |
|
| 43 | 43 | { |
| 44 | 44 | $this->details = $this->result->fetch_assoc(); |
| 45 | - return $this->details; |
|
| 46 | 45 | } |
| 47 | - else |
|
| 46 | + return $this->details; |
|
| 47 | + } else |
|
| 48 | 48 | { |
| 49 | 49 | return NULL; |
| 50 | 50 | } |