blob: eddd5dd40d42e0c7c65cebc230bad0f4720265b8 [file] [log] [blame]
Andreu66ad5cf2019-09-18 17:15:44 +02001<?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?>