Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
F1-Website
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
suleman.hussain
F1-Website
Commits
84dd5b96
Commit
84dd5b96
authored
Jan 25, 2023
by
suleman.hussain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flsdjfsldj
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
0 deletions
+92
-0
f1_background.jpg
f1_background.jpg
+0
-0
f1_test.php
f1_test.php
+70
-0
style.css
style.css
+22
-0
No files found.
f1_background.jpg
0 → 100644
View file @
84dd5b96
This diff is collapsed.
Click to expand it.
f1_test.php
0 → 100644
View file @
84dd5b96
<!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
style.css
0 → 100644
View file @
84dd5b96
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%
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment