Change results array structure #1

Merged
mattbk merged 8 commits from change-results-array-structure into master 2015-11-01 10:09:39 -06:00
3 changed files with 20 additions and 3 deletions
Showing only changes of commit 86c46fb736 - Show all commits

View File

@ -95,9 +95,19 @@ switch ($mode) {
$query->execute() or die('Could not execute query:<br>'.mysqli_error($db)); $query->execute() or die('Could not execute query:<br>'.mysqli_error($db));
$query->close(); $query->close();
//Debugging I think?
//Loop through $results better
//This is not done yet, but shows an example of a loop you could put a query statement in.
foreach ($_SESSION['results'] as $name => $value) {
foreach ($value as $n2 => $v2) {
echo $name.$n2.$v2;
}
}
//Debugging I think?
$variables['debug'] = $_SESSION['results']; $variables['debug'] = $_SESSION['results'];
break; break;
case 'results': case 'results':