Skip to content
Snippets Groups Projects

Projekers - 13515051 - Girvandi Ilyas

Open Girvandi Ilyas requested to merge projekers/TugasBesar1_2017:master into master
Viewing commit 7184c5f8
Show latest version
5 files
+ 36
6
Preferences
Compare changes
Files
5
+ 9
1
@@ -17,7 +17,15 @@ while($row = mysqli_fetch_array($result)){
while($row = mysqli_fetch_array($locations)){
$xml = $xml . '<location>'. $row['location'] .'</location>';
}
$result = $user->getDriverRating($user_id);
if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_array($result)){
$xml = $xml . '<rating>'. $row['driverRating'] .'</rating><votes>'. $row['votes'] .'</votes>';
}
} else {
$xml = $xml . '<rating>0</rating><votes>0</votes>';
}
$xml = $xml . '</user>';
print $xml;