I have a table like this:
Ineedtoaddthevalueofid1tothevalueofid15,savinginavariableinPHP.
I'veresearchedalot,butIdidnotgetsomethingspecificforthat.Thanksforanyhelp!
NOTE:Ihavetryingthefollowingbutitisreturning1,whentherightoneistoreturn49,14:
$result=mysqli_query($conn,"SELECT SUM(valor) FROM tb_valores WHERE id = ($id1) OR id = ($id15) ");
echo $linhasemuso = mysqli_affected_rows($conn);