Cleaned up code indentation
This commit is contained in:
parent
7177e5f096
commit
bcd321b9d0
@ -54,7 +54,8 @@ if ($mysqli->connect_errno) {
|
||||
}
|
||||
if ($result = $mysqli->query($query)) {
|
||||
$line = 1;
|
||||
// First merge keys of all serialized values so we are sure to have all columns
|
||||
// First merge keys of all serialized values and build an array containing all columns
|
||||
// (even if they are empty on first line... -> no key)
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
$ser = $row['formdata'];
|
||||
$seru = unserialize($ser);
|
||||
@ -72,8 +73,9 @@ if ($mysqli->connect_errno) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($result = $mysqli->query($query)) {
|
||||
|
||||
// Now we have a array with all the keys/columns we want to export to Excel
|
||||
if ($result = $mysqli->query($query)) {
|
||||
$line = 1;
|
||||
/* fetch associative array */
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
@ -123,10 +125,8 @@ $spreadsheet->getActiveSheet()
|
||||
);
|
||||
$line++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$spreadsheet->getActiveSheet()->getStyle('1')->getFont()->setBold(true);
|
||||
$spreadsheet->getActiveSheet()->setTitle('Toutes demandes');
|
||||
foreach (range('A','Z') as $col) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user