Академический Документы
Профессиональный Документы
Культура Документы
Program Code:
Index.php
<html>
<body>
<style>
table {
border-collapse: collapse;
width: 40%;
td, th{
text-align: left;
padding: 8px;
tr: nth-child(even){
background-color: #dddddd;
</style>
<h2>Student Details</h2>
</body>
</html>
<?PHP
require_once "config.php";
echo "<table>";
echo "<br>";
echo "<tr>";
echo "<th>LastName</th>";
echo "<th>FirstName</th>";
echo "<th>MiddleName</th>";
echo "<th>Age</th>";
echo "<th>Course</th>";
echo "<th>email</th>";
echo "<th>Action</th>";
echo "</tr>";
echo "<br>";
while($row = mysqli_fetch_array($result)){
echo "<tr>";
echo "<td>";
echo "</td>";
echo "</tr>";
echo "<br>";
echo "</table>";
else{
}
else{
mysqli_close($link);
?>
Program Code:
Create.php
<html>
<body>
<h2>Create Record</h2>
<p>Please fill this form and submit to add student record to the database.</p>
<label>StudentID:</label>
<label>LastName:</label>
<label>FirstName:</label>
<label>MiddleName:</label>
<label>Age:</label>
<label>Course:</label>
<input type ="text" name"txtcourse"><br>
<label>YearLevel:</label>
<label>Email:</label>
<label>MobileNumber:</label>
<a href="index.php">Cancel</a>
</form>
</body>
</html>