Hi,
Try replace with this code in your script:
Code:
if ($itemsCount > 0) {
echo "<table border='1' id= results>
<tr>
<th>ID</th>
<th>student name </th>
<th>student age </th>
<th>date added</th>
</tr>";
while($row = mysql_fetch_array($sql)){
$id = $row["id"];
$student_name = $row["student_name"];
$age = $row["student_age"];
$date_added = strftime("%b %d, %Y", strtotime($row["date_added"]));
echo "<tr><td>" .$id. "</td>";
echo "<td>" .$student_name. "</td>";
echo "<td>" .$age. "</td>";
echo "<td>" .$date_added. "</td></tr>";
}
echo "</table>";
}
Bookmarks