Guest User

php

a guest
May 2nd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1.  
  2.  <form name="kalenderdesign" method="post" action="forside.php?side=start">
  3.                   <?php
  4.           $result = mysql_query("SELECT * FROM kalender_maaneder") or die (mysql_error());
  5.                   echo '<select name="startdato">';
  6.           echo '<option value="false">-Vælg venligst-</option>';
  7.                   while ($row=mysql_fetch_array($result)) {
  8.           echo'<option value="'.$row{'id'}.'">'.$row{'maaned-og-aar'}.'</option>';
  9.                           }
  10.                    echo '</select>';
  11.                    
  12.                    ?>
Advertisement
Add Comment
Please, Sign In to add comment