<?PHP
$result = mysql_query("SELECT uid, desguation, description, places, free, payment, age, worktime, date FROM gzg_offers"); //ORDER BY desguation
echo "<TABLE CELLPADDING = 2 CELLSPACING = 3>";
$total_rows = mysql_num_rows($result); $counter = 0;
echo "<TR><TD class=\"inhalt\" width=\"35%\"><b>Bezeichnung</b></TD>
<TD class=\"inhalt\"><b>Beschreibung</b></TD>
<TD class=\"inhalt\" align=\"right\"><a href=\"applicant.php\">Hier online bewerben!</a></TD>
</TR><TR><td colspan=\"3\"><hr heigh=\"1\"></td></TR>";
while($counter < $total_rows):
$uid = mysql_result($result,$counter,"uid"); echo "<TR><TD WIDTH=\"160\" VALIGN=\"top\" class=\"inhalt\">";
echo mysql_result($result,$counter,"desguation");
echo "</TD>";
echo "<TD class=\"inhalt\" colspan=\"2\"><div align=\"justify\">";
echo mysql_result($result,$counter,"description");
echo "</div><br>";
echo "</TD></TR>";
echo "<TR><td> </td><TD class=\"inhalt\" bgcolor=\"#FACFB4\" colspan=\"2\">";
echo "<b>freie Stellen:</b> ". mysql_result($result,$counter,"places");
echo "<br>". mysql_result($result,$counter,"free");
echo "<br>". mysql_result($result,$counter,"payment");
echo "<br>". mysql_result($result,$counter,"age");
echo "<br>". mysql_result($result,$counter,"worktime");
echo "<br>". mysql_result($result,$counter,"date");
echo "</TD></TR><TR><td colspan=\"3\"><hr heigh=\"1\"></td></TR>";
$counter = $counter + 1;
endwhile;
echo "<TR><td colspan=\"3\" class=\"inhalt\" align=\"right\"><a href=\"applicant.php\">Hier online bewerben!</a></td></TR></TABLE><BR>";
?>