Commit 84dd5b96 authored by suleman.hussain's avatar suleman.hussain

flsdjfsldj

parents
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<title> </title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<?php
$conn=mysqli_connect("ysjcs.net","suleman.hussain","WF8L8LE8","sulemanhussain");
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql="SELECT * FROM Drivers";
$results = mysqli_query($conn,$sql);
/*
while($row = mysqli_fetch_assoc($results)) {
echo $row["First_Name"];
echo"<br/>";
foreach($row as $row){
echo $row . "|\t|";
}
echo"<br/>";
}
*/
echo "<table>";
echo "<tr>";
echo "<th>First Name</th>";
echo "<th>Last Name</th>";
echo "<th>DoB</th>";
echo "</tr>";
while($row = mysqli_fetch_assoc($results)){
echo "<tr>";
echo "<td>" . $row["First_Name"]. "</td>";
echo "<td>" . $row["Last_Name"]. "</td>";
echo "<td>" . $row["DoB"]. "</td>";
echo "</tr>";
}
echo "</table>";
echo '<form action="submit.php" method="post">';
echo '<label>Driver ID:</label>';
echo '<input type="text" name="Driver_ID">';
echo '<br>';
echo '<label>First Name:</label>';
echo '<input type="text" name="First_Name">';
echo '<br>';
echo '<label>Last Name:</label>';
echo '<input type="text" name="Last_Name">';
echo '<br>';
echo '<label>Team ID:</label>';
echo '<input type="text" name="Team_ID">';
echo '<br>';
echo '<label>Driver Number:</label>';
echo '<input type="text" name="Driver_Number">';
echo '<button type="submit">Submit</button>';
?>
</body>
</html>
\ No newline at end of file
body {
background-image: url("f1_background.jpg");
background-repeat: no-repeat;
background-size: cover;
}
table {
background-color: white;
position : absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
form {
background-color: white;
position : absolute;
top: 10%;
left: 50%;
transform: translate(-50%,-50%);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment