<?php
include ("config.php");
$dbverbindung = mysql_connect ($host, $user, $password);
$dbanfrage = "SELECT * from $tabelle order by id desc";
$result = mysql_db_query ($dbname, $dbanfrage, $dbverbindung);
echo "<form action=\"db_deletework.php\" method=post>";
echo "<input type=\"hidden\" name=\"tabelle\" value=\"$tabelle\">";
echo '<table width="600" border="0">';
echo '
<tr>
<td bgcolor="000000" align="center" width="50"><font color="#ffffff" face="Arial" size="-1"><b>Löschen</b></td>
<td bgcolor="000000" align="center"><font color="#ffffff" face="Arial" size="-1"><b>Anbieter</b></td>
<td bgcolor="000000" align="center" width="50"><font color="#ffffff" face="Arial" size="-1"><b>Land</b></td>
<td bgcolor="000000" align="center" width="100"><font color="#ffffff" face="Arial" size="-1"><b>Währung</b></td>
<td bgcolor="000000" align="center" width="100"><font color="#ffffff" face="Arial" size="-1"><b>Verdienst/h</b></td>
<td bgcolor="000000" align="center" width="100"><font color="#ffffff" face="Arial" size="-1"><b>Datum</b></td>
</tr>
';
while ($ausgabe = mysql_fetch_array ($result))
{
print (" <tr>
<td bgcolor=\"333333\"align=\"center\" width=\"50\">
<input type=\"checkbox\" name=\"delbox[]\" value=\"$ausgabe[id]\">
</td>
<td bgcolor=\"333333\" align=\"center\"><a href=\"$ausgabe[reflink]\"><font color=\"#ffffff\" face=\"Arial\" size=\"-1\">$ausgabe[anbieter]</a></td>
<td bgcolor=\"333333\" align=\"center\" width=\"50\"><img src=\"Bilder/$ausgabe[land]\" width=\"24\" height=\"20\" border=\"0\"></td>
<td bgcolor=\"333333\"align=\"center\" width=\"100\"><font color=\"#ffffff\" face=\"Arial\" size=\"-1\">$ausgabe[waehrung]</td>
<td bgcolor=\"333333\"align=\"center\" width=\"100\"><font color=\"#ffffff\" face=\"Arial\" size=\"-1\">$ausgabe[verdienst]</td>
<td bgcolor=\"333333\"align=\"center\" width=\"100\"><font color=\"#ffffff\" face=\"Arial\" size=\"-1\">$ausgabe[datum]</td>
</tr>");
}
echo '</table>';
echo '<input type=submit name="SUBMIT" value="Löschen">';
echo '</form>';
mysql_close ($dbverbindung)
?>