Wtminiproject
Wtminiproject
Wtminiproject
Index.php
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<header>
<nav>
<ul>
<h1>AK STORE</h1>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="home.php">Login</a></li>
</ul>
</nav>
</header>
<main>
<div class="container">
<!-- Slideshow container -->
<div class="slideshow-container">
<div class="text">IPHONE</div>
</div>
<div class="text">LAPTOP</div>
</div>
<div class="text">GAMING</div>
</div>
</div>
<div class="firstcard">
<div class="card-items">
<div class="card-items">
</div>
<div class="card-items">
</div>
<div class="card-items">
</div>
<div class="card-items">
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="firstcard">
<div class="card-items">
</div>
<div class="card-items">
</div>
<div class="card-items">
</div>
<div class="card-items">
<img src="./items/mobile/mobile4.jpg" alt="">
</div>
<div class="card-items">
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
</footer>
</body>
<script>
let slideIndex = 1;
showSlides(slideIndex);
// Next/previous controls
func on plusSlides(n) {
showSlides(slideIndex += n);
func on currentSlide(n) {
showSlides(slideIndex = n);
}
func on showSlides(n) {
let i;
slides[i].style.display = "none";
slides[slideIndex-1].style.display = "block";
showSlides();
func on showSlides() {
let i;
slides[i].style.display = "none";
slideIndex++;
slides[slideIndex-1].style.display = "block";
</script>
</html>
?>
home.php
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<center>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<a href="home.php"></a>
</form>
</center>
</body>
</html>
Inser.php
<?php
. mysqli_connect_error());
}
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$gender = $_REQUEST['gender'];
$address = $_REQUEST['address'];
$email = $_REQUEST['email'];
'$last_name','$gender','$address','$email')";
if(mysqli_query($conn, $sql)){
echo("<p><b>Gender:</b> ".$gender."</p>");
echo("<p><b>Address:</b> ".$address."</p>");
echo("<p><b>Email:</b> ".$email."</p>");
} else{
. mysqli_error($conn);
mysqli_close($conn);
?>
Style.css
@import
url('https://fonts.googleapis.com/css2?family=Tilt+Warp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');
@import
url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@500&display=swap
');
@import
url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
overflow-x: hidden;
header {
background-color: #2874f0;
padding-bottom: 40px;
padding-top: 20px;
height: 25px;
overflow: hidden;
header nav ul h1 {
display: flex;
color: white;
position: absolute;
left: 0;
header nav ul {
color: white;
display: flex;
list-style: none;
justify-content: flex-end;
align-items: center;
header nav ul li a {
text-decoration: none;
color: aliceblue;
display: flex;
padding-top: 5px;
/*https://source.unsplash.com/1200x300/?iphone*/
font-weight: bold;
border-radius: 1px;
border-style: solid;
border-color: #2C74B3;
position: relative;
right: 10vw;
width: 25vw;
height: 30px;
text-align: start;
text-decoration: none;
border-radius: 20px;
text-align: left;
footer {
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
background-color: #2874f0;
height: 12vh;
footer p {
color: aliceblue;
main {
background-color: #EAFDFC;
background-color: #5d91c4;
border-radius: 20px;
display: inline-flex;
width: 180px;
height: 190px;
border-radius: 20px;
text-align: center;
color: #EAFDFC;
display: flex;
justify-content: center;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
border-radius: 20px;
margin-top: 10px;
width: 150px;
height: 150px;
}
/* Slideshow container */
.slideshow-container {
max-width: 1100px;
position: relative;
margin: auto;
.mySlides {
display: none;
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
.prev:hover,
.next:hover {
/* Caption text */
.text {
color: #f2f2f2;
font-size: 15px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
.numbertext {
color: #f2f2f2;
font-size: 12px;
position: absolute;
top: 0;
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
.active,
.dot:hover {
background-color: #717171;
/* Fading animation */
.fade {
animation-name: fade;
animation-duration: 1.5s;
.sliderimg {
border-radius: 10px;
@keyframes fade {
from {
opacity: .4
to {
opacity: 1
.card-items ul {
list-style-type: none;
position: relative;
bottom: 20px;
box-sizing: border-box;
Stylel.css
body {
font-family: sans-serif;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #EAFDFC;
.container {
background-color: #fff;
padding: 30px;
border-radius: 5px;
width: 400px;
h1 {
text-align: center;
margin-bottom: 20px;
label {
display: block;
margin-bottom: 5px;
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
border-radius: 3px;
margin-bottom: 15px;
button[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
button[type="submit"]:hover {
opacity: 0.8;
a {
color: #aaaaaa;
text-decoration: none;
font-size: 12px;
display: block;
margin-top: 10px;
a:hover {
color: #4CAF50;
/* General styles */
body {
font-family: sans-serif;
margin: 0;
padding: 20px;
text-align: center;
h1 {
margin-bottom: 20px;
/* Form styles */
form {
display: inline-block;
padding: 20px;
border-radius: 5px;
label {
display: block;
margin-bottom: 5px;
input[type="text"] {
width: 100%;
padding: 10px;
border-radius: 3px;
margin-bottom: 15px;
input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
input[type="submit"]:hover {
opacity: 0.8;
a {
text-decoration: none;
color: #aaaaaa;
margin-top: 10px;
display: block;
a:hover {
color: #4CAF50;
testdb.sql
START TRANSACTION;
COMMIT;
OUTPUT