poll_options.php 406 B

123456789101112131415161718
  1. <?php
  2. require_once("./common.php");
  3. $poll_id = $_GET['poll_id'];
  4. $query = sprintf("SELECT * FROM polls WHERE id = %s", mysql_real_escape_string($poll_id));
  5. $result = mysql_query($query);
  6. $poll = mysql_fetch_array($result);
  7. $smarty->assign("title", $poll['title']);
  8. $smarty->assign("description", $poll['description']);
  9. $smarty->assign("poll_id", $poll_id);
  10. $smarty->display ("poll_options.html");
  11. ?>