Posts

Complete Class to Insert Data and Upload Image in PHP OOPS

<?php require('config.php'); class kaamdhenu extends config{              private $preparequery, $executequery;          public function setter(){              $this->executequery = mysqli_query($this->conn,$this->preparequery);              }          function registeruser(){         $this->preparequery = "INSERT INTO kaamdhenu_users(firstName,lastName,password,email,phone,gender,sec_question,sec_answer) VALUES ('".$_POST['fname']."', '".$_POST['lname']."','".$_POST['password']."',         '".$_POST['email']."','".$_POST['phone']."','".$_POST['gender']."','".$_POST['squestion']."','".$_POST['sAnswer']."')";$this->setter();                  if($this->executequery){             echo "Successfully Regis...

Image Upload PHP Core or OOPs

'jobseeker_photo' is the name  of the input  $file = $FILES['jobseeker_photo'];                  $fileName = $_FILES['jobseeker_photo']['name'];         $fileTmpName = $_FILES['jobseeker_photo']['tmp_name'];         $fileSize = $_FILES['jobseeker_photo']['size'];         $fileError = $_FILES['jobseeker_photo']['error'];         $fileType = $_FILES['jobseeker_photo']['type'];                  $fileExt = explode('.', $fileName);         $fileActualExt = strtolower(end($fileExt));                  $allowed = array('jpg', 'jpeg', 'png');                         if(in_array($fileActualExt, $allowed)) {             if($fileError === 0){       ...

Display Search on Button Click with Animation

  HTML  <button id="search_button" onclick="search_display()"><i class="fas fa-search"></i></button>        <div id="search"><input type="text" name="search_bar" id="search_bar" placeholder="Search.."><button id="search_button1"><i class="fas fa-search"></i></button></div> CSS #search_button,#search_button1 {   float: right;   width: 4vw;   height: 8vh;   border: none;   background: #fedd02;  }  #search_button:hover,#search_button1:hover {   color: white;  } #search {   display: none;   position: fixed;   top: 6.5vh;   right: 11.8vw;  }  #search_bar {   width: 20vw;   height: 8vh;   background: #000000;   color: #FFFFFF;   animation: 1s fade ease;  }  @keyframes fade {   from {     width: 0;   }   to{     width: 20vw;   } }  #se...

Make Triangle using HTML, CSS

Method 1 <!DOCTYPE html> <html lang="en" dir="ltr">   <head>     <meta charset="utf-8">     <title></title>     <style>       span {         border-bottom: 100px solid red;         border-right: 50px solid transparent;         border-left: 50px solid transparent;       }     </style>   </head>   <body>     <span></span>   </body> </html> Method 2 <style>       span {         border-top: 100px solid red;         border-right: 50px solid transparent;         border-left: 50px solid transparent;       }     </style> <span></span>

Dynamic On Page Navigation

Dynamic On-page Navigation to load Previous and Next Pages <div class="container" id="art_animation">   <div class="row">     <div class="col">        <hgroup><h2>{{$blog->title}}</h2>         <span>By           <a href="#">             {{getUserData($user_id,'name')}}           </a>                </span>                  <span>In<a href="#">Blog</a></span><span class="text-secondary">{{date("l, F d, Y",strtotime($blog->created_at))}}</span></hgroup>        <p>{{strip_tags($blog->body)}}</p>     </div>   </div>   <hr>   <div id="navigate_pages">      <div id="box...

Event Calendar

Event Calendar HTML, CSS and JS

Constructor & Destructor in PHP OOPS

Image