1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-10 04:02:28 +01:00

nvm, needs to fetch array

This commit is contained in:
Chaoyi Zha 2014-06-22 09:13:34 -04:00
parent 359b7bd5c9
commit e25e60e4bd

View File

@ -16,7 +16,7 @@ if (!is_array($auth->islogged())) {
global $mysqli; global $mysqli;
$sqr = "SELECT `baseval`,`rurl`,`date` FROM `redirinfo` WHERE user = '{$mysqli->real_escape_string($userinfo['username'])}' LIMIT {$lstart} , 50;"; $sqr = "SELECT `baseval`,`rurl`,`date` FROM `redirinfo` WHERE user = '{$mysqli->real_escape_string($userinfo['username'])}' LIMIT {$lstart} , 50;";
$res = $mysqli->query($sqr); $res = $mysqli->query($sqr);
$links = mysqli_fetch_assoc($res); $links = mysqli_fetch_all($res, MYSQLI_ASSOC);
$linkshtml = '<table class="table table-hover"><tr><th>Link ending</th><th>Long Link</th><th>Date (EST - NA)</th><th>PW-Protected</th></tr>'; $linkshtml = '<table class="table table-hover"><tr><th>Link ending</th><th>Long Link</th><th>Date (EST - NA)</th><th>PW-Protected</th></tr>';
foreach ($links as $link) { foreach ($links as $link) {