<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#E0EEFE"><font color="#000099"><strong>intern:</strong></font></td>
<td bgcolor="#EEEEEE"><font color="#000099"><strong>extern:</strong></font></td>
</tr>
<tr>
<td nowrap>
<?php
//
for ($i=0; $i<$menge ;$i++)
{
$id= mysql_result($qu,$i,"id");
$Preis= mysql_result($qu,$i,"Preis");
$Datum= mysql_result($qu,$i,"Datum");
$Anbieter= mysql_result($qu,$i,"Anbieter");
$Werbung= mysql_result($qu,$i,"Werbung");
$EK = mysql_result($qu,$i,"EK");
$DatumEK= mysql_result($qu,$i,"DatumEK");
$Lieferant= mysql_result($qu,$i,"Lieferant");
$VK= mysql_result($qu,$i,"VK");
//
if ((!$menge) or ($menge==1))
{
//echo "1 Tabelle";
echo '<table align="left" width="100%" border="0" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td nowrap><strong>Preis '.($i+1).'</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap>'.$Preis.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Datum:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Datum.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Anbieter:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Anbieter.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Werbung:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Werbung.'</td>';
echo '</tr>';
echo '</table>';
}
elseif ($menge==2)
{
//echo "2 Tabellen";
echo '<table align="left" width="100%" border="0" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td nowrap><strong>Preis '.($i+1).'</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap>'.$Preis.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Datum:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Datum.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Anbieter:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Anbieter.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Werbung:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Werbung.'</td>';
echo '</tr>';
echo '</table>';
}
elseif ($menge > 2)
{
echo "3 Tabellen";
}
}
?>
</td>
<td>
<?php
for ($i=0; $i<$menge ;$i++)
{
$id= mysql_result($qu,$i,"id");
$Preis= mysql_result($qu,$i,"Preis");
$Datum= mysql_result($qu,$i,"Datum");
$Anbieter= mysql_result($qu,$i,"Anbieter");
$Werbung= mysql_result($qu,$i,"Werbung");
$EK = mysql_result($qu,$i,"EK");
$DatumEK= mysql_result($qu,$i,"DatumEK");
$Lieferant= mysql_result($qu,$i,"Lieferant");
$VK= mysql_result($qu,$i,"VK");
//
if ((!$menge) or ($menge==1))
{
//echo "1 Tabelle";
echo '<table align="left" width="100%" border="0" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td nowrap><strong>EK '.($i+1).'</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap>'.$EK.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Datum:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$DatumEK.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>Lieferant:</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td>'.$Lieferant.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap><strong>VK '.($i+1).'</strong></td>';
echo '</tr>';
echo '<tr>';
echo '<td nowrap>'.$VK.'</td>';
echo '</tr>';
echo '</table>';
}
elseif ($menge==2)
{
echo "2 Tabellen";
}
}
?>
</td>
</tr>
</table>