I have made a small multiplication function
<p><?php
$a= "<?php echo $this->prodDet->v_price?>";
$b=.26;
$c=$a*$b;
echo $c;
?>
Here the price value is extracted from database of the requiste product and is multiple by fixed .26 variable. Wondering why am getting this errror -
Catchable fatal error: Object of class stdClass could not be converted to string in
I am learning the basics of PHP. can someone suggest how to get it solved please?
Thanks