I had this all working at one stage, now it's got a problem. I can put test in the sections <------->, but it throws an error saying missing a , or an ; if I try putting in a session variable:
echo'<td width="15%" align="left"><b><font size="2"><?=$_SESSION['QTY'][$i]?></font></b></td>';
Code:
<?
echo '<table border="1" width="70%" bordercolor="#000000" cellspacing="0"><b><font face="Arial">';
// BETACAM SP ONLY ----------------------------------------------------------------------------------------------
//If Betacam SP Ordered then put in titles & Headings
if ($_SESSION['RTL'][14]>0) {
//Title
echo'<td width="95%" align="left" colspan="5">Fuji M321 Betacam SP</td></tr>';
//Headings
echo'<tr><td width="25%" align="center"><b><font face="Arial" size="2">Item</font></b></td>';
echo'<td width="25%" align="center"><b><font face="Arial" size="2">Duration</font></b></td>';
echo'<td width="15%" align="center"><b><font face="Arial" size="2">Quantity</font></b></td>';
echo'<td width="15%"><b><font face="Arial" size="2">Unit Price</font></b></td>';
echo'<td width="15%" align="left"><b><font face="Arial" size="2">Sub Total</font></b></td></tr>';
}
//If Betacam SP ordered then put in table
// Betacam SP
for ($i=9;$i<15;$i++)
if ($_SESSION['QTY'][$i]>0) {
//Items
echo'<tr><td width="25%" align="center"><b><font size="2">----------</font></b></td>';
echo'<td width="25%" align="center"><b><font size="2">-----------</font></b></td>';
echo'<td width="15%" align="left"><b><font size="2">------------</font></b></td>';
echo'<td width="15%"><b><font size="2">------------</font></b></td>';
echo'<td width="15%"><b><font size="2">------------</font></b></td></tr>';
}
echo'<table border="1" width="75%" id="table1" bordercolor="#000000" cellspacing="0"><tr>';
echo'</table>';
echo' ';
echo' ';
echo' ';
?>
echo'<td width="15%" align="left"><b><font size="2"><?=$_SESSION['QTY'][$i]?></font></b></td>';
Code:
<?
echo '<table border="1" width="70%" bordercolor="#000000" cellspacing="0"><b><font face="Arial">';
// BETACAM SP ONLY ----------------------------------------------------------------------------------------------
//If Betacam SP Ordered then put in titles & Headings
if ($_SESSION['RTL'][14]>0) {
//Title
echo'<td width="95%" align="left" colspan="5">Fuji M321 Betacam SP</td></tr>';
//Headings
echo'<tr><td width="25%" align="center"><b><font face="Arial" size="2">Item</font></b></td>';
echo'<td width="25%" align="center"><b><font face="Arial" size="2">Duration</font></b></td>';
echo'<td width="15%" align="center"><b><font face="Arial" size="2">Quantity</font></b></td>';
echo'<td width="15%"><b><font face="Arial" size="2">Unit Price</font></b></td>';
echo'<td width="15%" align="left"><b><font face="Arial" size="2">Sub Total</font></b></td></tr>';
}
//If Betacam SP ordered then put in table
// Betacam SP
for ($i=9;$i<15;$i++)
if ($_SESSION['QTY'][$i]>0) {
//Items
echo'<tr><td width="25%" align="center"><b><font size="2">----------</font></b></td>';
echo'<td width="25%" align="center"><b><font size="2">-----------</font></b></td>';
echo'<td width="15%" align="left"><b><font size="2">------------</font></b></td>';
echo'<td width="15%"><b><font size="2">------------</font></b></td>';
echo'<td width="15%"><b><font size="2">------------</font></b></td></tr>';
}
echo'<table border="1" width="75%" id="table1" bordercolor="#000000" cellspacing="0"><tr>';
echo'</table>';
echo' ';
echo' ';
echo' ';
?>