1
Hallo,
das einlesen der Daten funktioniert nicht.
Gruß
das einlesen der Daten funktioniert nicht.
Gruß
<?php
$filename = "config.php";
if(!file_exists($filename)){ echo('404 conf Not found'); die; }
include $filename;
$dataPoints = array();
$solar = array("solar");
$record = mysqli_query($con, "SELECT ablesedatum, kwh FROM solar ORDER BY ablesedatum DESC LIMIT 10";)
// if (count($record) == 0 ) { echo "nix"; }
$rowcount = mysqli_num_rows( $record );
echo "anz". $rowcount;
while($row = mysqli_fetch_array($record))
{
>>> hier der ev. Fehler array_push($dataPoints, array("x" => $row['ablesedatum', "y" => $row['kwh']));
//array_push($dataPoints, $daten);
}
foreach($dataPoints as $element) {
echo '<br>'.$element;
}
?>