Hi everyone,
Edited: So I figured out how to show the submit buttons. My next question is how to incorporate a security measure like html_entities in the action of the form?
<?php
require ("core/config.php");
$tablevaluegetter = mysql_query("SELECT * FROM ratingsystem WHERE typeofsite='somthingtorate' ORDER BY ratetotal DESC");
echo "<table border='1'>
<tr>
<th>Sitename</th>
<th>Siteaddress</th>
<th># of Yes </th>
<th># of No </th>
<th>Total </th>
</tr>";
while($tableratings = mysql_fetch_assoc($tablevaluegetter))
{
$whilesitename = $tableratings['sitename'];
$whilesiteaddress = $tableratings['siteaddress'];
$whilerateyes = $tableratings['rateyes'];
$whilerateno = $tableratings['rateno'];
$whileratetotal = $tableratings['ratetotal'];
echo "<tr>";
echo "<td>" . $whilesitename . "</td>";
echo "<td>" . $whilesiteaddress . "</td>";
echo "<td><form action='' method='POST'> <input type='submit' value='$whilerateyes' /></form></td>";
echo "<td><form action='' method='POST'> <input type='submit' value='$whilerateno' /></form></td>";
echo "<td>" . $whileratetotal . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($selectdb);
?>
Thank you in advance.