comparison php/read/getLeaderboard.php @ 46:b7376319d25a

centralise db query even more
author Charlie Root
date Sun, 06 Jan 2019 12:15:42 -0500
parents 077b0a0a3e6d
children a67bf725e87b
comparison
equal deleted inserted replaced
45:8bc395c87c6f 46:b7376319d25a
1 <?PHP 1 <?PHP
2 2
3 include "../../../private/db.php"; 3 include "private/db.php";
4 4
5 $query = "CALL b_getLeaderboard()"; 5 $query = "CALL b_getLeaderboard()";
6 $results = mysqli_query($link, $query) or exit( mysqli_error( $link )); 6 $results = my_query( $query,'gl');
7 7
8 $output = ""; 8 $output = "";
9 $output .= "<?xml version=\"1.0\"?>"; 9 $output .= "<?xml version=\"1.0\"?>";
10 $output .= "<Leaderboard>"; 10 $output .= "<Leaderboard>";
11 11