I have in table defined in $data 10 fields being
Aandeel1
Aandeel2
Aandeel3
Aandeel4
...
Aandeel10
The code below works.
echo $data->login;
echo " je hebt op dit moment ";
$huidigAantal=($data->Aandeel10) ;
echo $huidigAantal;
echo " van dit aandeel. ";
echo $HuidigAantal;
But can I add to variables in a query, like $data->Aandeel+number?
echo $data->login;
echo " je hebt op dit moment ";
$huidigAantal=($data->Aandeel+number ;
echo $huidigAantal;
echo " van dit aandeel. ";
echo $HuidigAantal;
Ofcourse I can fix this by the if then else functions, but I was wondering if the above is possible