$query = "SELECT sum(load_d) FROM `aser` WHERE Y=3"; $stmt = $this->pdo->query($query); while ($row = $stn->fetch(PDO::FETCH_ASSOC)){ print "-----------------\n"; print $row['load_d']; }
Tell me why the return of the amount of the column via PDO does not work? sql request is valid, checked through phpmyadmin.