Apologies if this is not in the correct forum.
I have some php code which pulls back data relating to books in the format
ISBN|Author|Title|Price|Availability|URL|Standard Shipping|Binding
I have code which splits the 8 parts:
$pieces = split("|",$contentsarray[$n]);
$contentsarray2[$n][0] = $pieces[0];
$contentsarray2[$n][1] = $pieces[1];
$contentsarray2[$n][2] = $pieces[2];
$contentsarray2[$n][3] = $pieces[3];
$contentsarray2[$n][4] = $pieces[4];
$contentsarray2[$n][5] = $pieces[5];
$contentsarray2[$n][6] = $pieces[6];
$contentsarray2[$n][7] = $pieces[7];
$contentsarray2[$n][8] = $pieces[8];
$tempopenfile = @fopen("$tempurl", "r");
$n++;
some of which are later displayed in a table:
echo "<td><b>".$contentsarray2[$n][2]."</b><br>";
echo "Author: ".$contentsarray2[$n][1]."<br>";
echo "Binding: ".$contentsarray2[$n][7]."<br>";
echo "ISBN: ".$contentsarray2[$n][0]."</td><td align=center>";
The cost of the book is part 3 and the postage cost is part 6.
Is there any way that I can add these together to create a total cost?
Apologies if this is not clear as I am new to this and attempting to alter a script.
Many thanks
Mark