Guest User

Untitled

a guest
Jul 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2. $sql = "SELECT n.*, YEAR(n.begindate) AS beginyear FROM news n WHERE id=1";
  3. $result = mysql_query($sql);
  4. $row = mysql_fetch_array($result);
  5.  
  6. ?>
  7. <form method="post" action="">
  8.     <input name="beginjaar" value="<?php echo $row['beginyear']; ?>" />
  9. </form>
Add Comment
Please, Sign In to add comment