Location: PHPKode > scripts > Voting system > voting-system-61721/results.php
<table border = 4><tr><th>Question</th><th>a</th><th>b</th><th>c</th><th>d</th></tr>
<?php
include('database.php');
//results
$query="SELECT * FROM results2 ORDER BY id DESC LIMIT 1";
$rez=mysql_query($query);
$row=mysql_fetch_array($rez);
print "<tr><td>{$row['quest']}</td><td>{$row['a']}</td><td>{$row['b']}</td><td>{$row['c']}</td><td>{$row['d']}</td></tr>";
?>
</table>
Return current item: Voting system