PHP-Code:
$pir_config1_1_5 = $dbConfig->query('SELECT * FROM BoolSensorsSummer WHERE Sensor="PIR1 1-5"');
while($row=$pir_config1_1_5->fetchArray(SQLITE3_ASSOC))
{
$pir_config[]=$row;
}
print_r($pir_config);
for ($x = 0; $x <= 23; $x++) {
echo '<td><font color="blue">'.$pir_config["h."$x]."</font></td>";
Array ( [0] => Array ( [LineNr] => 1 [Sensor] => PIR1 1-5 [h0] => 1 [h1] => 2 [h2] => 3 [h3] => 4 [h4] => 5 [h5] => 6 [h6] => 8 [h7] => 8 [h8] => 9 [h9] => 10 [h10] => 11 [h11] => 12 [h12] => 13 [h13] => 14 [h14] => 15 [h15] => 16 [h16] => 17 [h17] => 18 [h18] => 19 [h19] => 20 [h20] => 21 [h21] => 22 [h22] => 23 [h23] => 24 ) )
Notice: Undefined index: h0 ...h1 ....h2
Kommentar