Je moet ingelogd zijn om te stemmen.
<form action="" method="post"> <select> <option value=""></option> <?php $query = mysql_query("SELECT * FROM projects ORDER BY pr_id") or die(mysql_error()); $count = mysql_num_rows($query); if($count != 0) { while($result = mysql_fetch_array($query)) { ?> <option value="<?php echo $result["pr_name"]; ?>"><?php echo $result["pr_name"]; ?></option> <?php } } else { print("<p class=\"error\">Geen projecten gevonden.</p>"); } ?> </select> </form>
<form action="" method="post"><select> <option value=""></option><?php$query = mysql_query("SELECT * FROM projects ORDER BY pr_id") or die(mysql_error());$count = mysql_num_rows($query);if($count != 0){ while($result = mysql_fetch_array($query)) {?> <option value="<?php echo $result["pr_name"]; ?>"><?php echo $result["pr_name"]; ?></option><?php }}else{ print("<p class=\"error\">Geen projecten gevonden.</p>");}?></select></form>