ÿØÿà JFIFÿØÿà JFIF ÿØÿà JFIFÿØÿà JFIF ÿþ$
<?php
include('config.php');
session_start();
if (!isset($_SESSION['Id'] )) {
$error="Account doesn't exist";
} else{
$user_id = $_SESSION['Id'];
$sql = "SELECT * FROM registration WHERE id = '$user_id'";
$done = mysqli_query($conn,$sql);
if (mysqli_num_rows($done)>0) {
$detail=mysqli_fetch_all($done,MYSQLI_ASSOC);
$cname =$detail[0]['Childsname'];
$age = $detail[0]['Age'];
$img =$detail[0]['Image'];
}else{
}
}
if (isset($_GET['id'])) {
$user_id = $_GET['id'];
$sql = "SELECT * FROM registration WHERE id = '$user_id'";
$done = mysqli_query($conn,$sql);
if (mysqli_num_rows($done)>0) {
$detail=mysqli_fetch_all($done,MYSQLI_ASSOC);
$cname =$detail[0]['Childsname'];
$age = $detail[0]['Age'];
$img =$detail[0]['Image'];
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/1e78e0a43f.js" crossorigin="anonymous"></script>
<?php
include('nav.php');
?>
</head>
<style>
form#reg{
padding: 2rem;
}
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.container {
position: relative;
}
.centered {
position: absolute;
top: 52%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 18px;
}
.centro {
position: absolute;
top: 74%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 12px;
font-weight: bold;
}
.imgg {
width: 100%;
height: auto;
}
</style>
<body>
<br>
<br>
<br>
<br>
<br>
<div style="text-align:center">
<button class="btn center" style="background-color: #560280;">Take a Screenshot of your Profile Card</button>
<br><br>
<div class="container row">
<div class="">
<div class="col l6 m12 s12 push-l3">
<!--<img class="imgg" src="img/D6.jpg" alt="Contestant's Image" width="1000" height="300">-->
<img src="img/BABYNITCHEframe.jpg" alt="bbyframe" width="100%" style="position:;">
<div class="hide-on-large-only centered">
<img src="<?php echo $img ?>" style="width: 140px; height:140px; border-radius: 5px;margin-bottom:15px;" alt="">
</div>
<div class="centro hide-on-large-only centered" style="text-align:center; height: 65px; background-color:none;">
<p style="text-transform:capitalize; margin-top:18px; text-align:center; color: white; font-size:12px"><?php echo $cname ?> | ID: <?php echo $user_id ?></p>
</div>
<div class="hide-on-med-and-down centered">
<img src="<?php echo $img ?>" style="width: 195px; height:195px; border-radius: 5px; margin-bottom:25px;" alt="">
</div>
<div class="centro hide-on-med-and-down centered" style="text-align:center; height: 78px; background-color:none;">
<p style="text-transform:capitalize; margin-top:18px; text-align:center; color: white; font-size:17px; display:inline-block;"><?php echo $cname ?> | ID: <?php echo $user_id ?></p>
</div>
</div>
</div>
</div>
</div>
<?php
include('footer.php');
?>
</body>
</html>
ÿØÿà JFIF ÿþ$
ÿØÿà JFIF ÿþ$
ÿÂ