Mercurial > hg > ywww
diff 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 |
line wrap: on
line diff
--- a/php/read/getLeaderboard.php Sun Jan 06 08:09:47 2019 -0500 +++ b/php/read/getLeaderboard.php Sun Jan 06 12:15:42 2019 -0500 @@ -1,9 +1,9 @@ <?PHP -include "../../../private/db.php"; +include "private/db.php"; $query = "CALL b_getLeaderboard()"; -$results = mysqli_query($link, $query) or exit( mysqli_error( $link )); +$results = my_query( $query,'gl'); $output = ""; $output .= "<?xml version=\"1.0\"?>";