����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.139.80.194 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/learn.skilltainment.org/ |
Upload File : |
<?php include './sidebar.php'; include './navbar.php'; if (isset($_GET['title'])) { if (!empty($_GET['title'])) { $title_hiphen = mysqli_real_escape_string($conn, $_GET['title']); $title = str_replace('-', ' ', $title_hiphen); $run = mysqli_query($conn, "SELECT * FROM `projects` WHERE `title`='$title'") or die(mysqli_error($conn)); while ($row = mysqli_fetch_array($run)) { $project_id = $row['pid']; $sqli = "SELECT `views` FROM `projects` WHERE `pid`='$project_id'"; if ($sql_run = mysqli_query($conn, $sqli)) { if (list($listened) = mysqli_fetch_array($sql_run)) { $increment = ++$listened; $Sqli2 = "UPDATE `projects` SET `views`='$increment' WHERE `pid`='$project_id'"; $sql2_run = mysqli_query($conn, $Sqli2); } } } } } ?> <div class="container-fluid pt-2 px-4"> <div class="row g-2"> <?php if ($user_type == 1) { ?> <div class="col-12 d-flex justify-content-end mb-2"> <a href="project-step.php?id=<?php echo $project_id; ?>" class="bg-primary btn text-white"><i class="fa fa-plus"></i> Add Step</a> <a href="new-project.php" class="bg-primary btn text-white ms-2"><i class="fa fa-plus"></i> Add Code</a> </div> <?php } $run = mysqli_query($conn, "SELECT * FROM `project` WHERE `pid`='$project_id'") or die(mysqli_error($conn)); while ($row = mysqli_fetch_array($run)) { ?> <div class="col-12 my-2" data-aos="flip-up" data-aos-duration="500"> <img src="./projects/images/<?php echo $row['image']; ?>" class="step-image" alt> <p><?php echo $row['details']; ?></p> </div> <?php } ?> </div> </div> <script> document.querySelector("title").innerText = "<?php echo strtoupper($title); ?>"; <?php if ($user_type == 1) { ?> document.querySelectorAll(".navbar-nav a")[5].classList.add("active"); <?php } else { ?> document.querySelectorAll(".navbar-nav a")[2].classList.add("active"); <?php } ?> </script> <?php include './footer.php'; ?>