>
For example: A person who sees the sum of the integers of these two columns for 2016-09-20 . How to do this script? ( PDO )
In case he should return the sum of 25.5 ...
Thegeneralreturn,howevernotsummedandtbmseparate...
$bsc_user=$pdo->prepare("SELECT * FROM 'tab_newprodut' WHERE 'p_data'=?");
$bsc_user->execute(array("2016-09-20"));
$bsc_cont = $bsc_user->rowCount();
if($bsc_cont > 0){
while($linha = $bsc_user->fetch(PDO::FETCH_ASSOC)) {
echo $linha['p_line_a'].' '.$linha['p_line_l'].'<br>';
}
} else {
echo '<div class="return_box-list-u">Nenhum registro localizado.</div>';
}
1 - It needs to total the two columns p_line_a, p_line_l that refer to the specified date.
2 - how would I do to print (echo) this ??