Mailinglisten-Archive |
$verbindung = mysql_connect("localhost","",""); mysql_select_db("dbname",$verbindung); $i=0; $a=0; function listfields(){ $query = "SELECT field FROM table"; $result = mysql_query($query); echo "<form action=\"".$PHP_SELF."\" method=\"post\">"; echo "<table align=center><tr><td>"; while($row=mysql_fetch_array($result)) { echo "<input type=\"radio\" name=\"id\" value=\"".$row["feld"]."\">".$row["feld"]."<br>\n"; $i++; if(($i%15)==0) { echo "</td><td>"; $a++; } } echo "</td></tr><tr><th colspan=\"$a\"><input type=\"submit\" value=\"zeigen\"></th></tr></table></form>"; } so hab ich das neulich gelöst...
php::bar PHP Wiki - Listenarchive