I'm newbie to PHP and trying my best to learn on my own and take some courses online but currently I'm working on a website that stores information about students and their status. At the moment I have script that generates a list of students in a table and it works fine, but the list is way too long. So I thought maybe it would be efficient have the script generate the same list of students but in a TEXTAREA form field. Faculty will also need to have the ability to delete them individually or the whole list if necessary.
This is what I got so far:
<?php
$query = "SELECT re_first_name, re_last_name FROM students WHERE re_status_id_fk =3";
$result = mysql_query($query);
if($list=1)
{
while($row = mysql_fetch_assoc($result))
{
echo "<table cellspacing=3 cellpadding=0 border=0><tr><td width=70><b>Name: </b></td><td width=300>";
echo " ".$row[re_first_name]." ". $row[re_last_name]." ";
echo "</td>";
echo "</tr></table>";
}
echo "<br><br>";
}
else{
echo "The script isn't working properly, please try clicking the link again. If you continue to get this message contact your web site administrator.";
echo "<br>";
}
mysql_close();
include ('templates/footer.inc');
ob_end_flush();
exit();
?>
πCan anyone please helpπππ