$query="SELECT * FROM to3rd_temp";<br /> $result=mysql_query($query);<br /> $num=mysql_numrows($result);<br /> <br /> mysql_close();<br /> <br /> echo "<center>Database Output</center><br><br>";<br /> <br /> // Draw table Header<br /> echo "<table border="2"><tr><br /> <td>header 1</td><br /> <td>header2</td><br /> //Removed code to make post shorter<br /> <td>Accept/Reject</td><br /> </tr>";<br /> <br /> //Loop all info in DB<br /> $i=0;<br /> <br /> while ($i < $num) {<br /> <br /> $id=mysql_result($result,$i,"id");<br /> $datesub=mysql_result($result,$i,"datesub");<br /> //Removed code to make post shorter<br /> $value=mysql_result($result,$i,"value");<br /> <br /> echo "<tr> <br /> <td>$datesub</td><br /> <td>$dateocc</td><br /> //Removed code to make post shorter<br /> <td><input type='button' name='button1' value='Accept'> <br /> <br><br /> <input type='button' value='Reject'><br /> </br></td><br /> </tr>";<br /> <br /> $i++;<br /> }<br /> // Close Table<br /> echo "</table>";<br /> echo "<center><a href="index.php">Back</a></center><br><br>";<br /> </br></br></br></br>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)