Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sql = "SELECT n.*, YEAR(n.begindate) AS beginyear FROM news n WHERE id=1";
- $result = mysql_query($sql);
- $row = mysql_fetch_array($result);
- ?>
- <form method="post" action="">
- <input name="beginjaar" value="<?php echo $row['beginyear']; ?>" />
- </form>
Add Comment
Please, Sign In to add comment