Ok did a uni project that i finished last week =D but never finished the program and wanting to get it to work so i can use it as referance.
with this i was displaying info from the last 3 fields and wanted to get them to update. Using a button at the bottom of the page. so far i have
Anyone know where i can look to get started on this.
Kind regards
with this i was displaying info from the last 3 fields and wanted to get them to update. Using a button at the bottom of the page. so far i have
PHP:
<?php
include("dbinfo.inc.php");
mysql_connect($host,$username,$password);
@mysql_select_db($db_name) or die( "Unable to select database");
$result = mysql_query("SELECT * FROM logs WHERE date_checked = ''");
echo "<table border='1'>
<tr>
<th>Log ID</th>
<th>ID</th>
<th>Module</th>
<th>Assignment Ref</th>
<th>set_by</th>
<th>resubmission</th>
<th>student_comments</th>
<th>date_handin</th>
<th>date_checked</th>
<th>checked_by</th>
<th>staff_comments</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['log_id'] . "</td>";
echo "<td>" . $row['id_number'] . "</td>";
echo "<td>" . $row['module_code'] . "</td>";
echo "<td>" . $row['assignment_ref'] . "</td>";
echo "<td>" . $row['set_by'] . "</td>";
echo "<td>" . $row['resubmisson'] . "</td>";
echo "<td>" . $row['student_comments'] . "</td>";
echo "<td>" . $row['date_handin'] . "</td>";
echo "<td>" . $row['date_checked'] . "</td>";
echo "<td>" . $row['checked_by'] . "</td>";
echo "<td>" . $row['staff_comments'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close;
?>
Anyone know where i can look to get started on this.
Kind regards
Last edited: