Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 1 | <?php |
2 | if ($result = $conn->query($query)) { | ||||
3 | |||||
4 | // Fetch the information of the user | ||||
5 | while ($row = $result->fetch_row()) { | ||||
6 | $user->id = $row[0]; | ||||
7 | $user->nomcomplet = $row[1]; | ||||
8 | $user->curs = $row[2]; | ||||
9 | $user->grau = $row[3]; | ||||
10 | $user->quimata = $row[4]; | ||||
11 | } | ||||
12 | |||||
13 | $result->close(); | ||||
14 | } else { | ||||
15 | echo "Wrong query"; | ||||
16 | } | ||||
17 | ?> |