
2.1K Views
<pre> <code class="language-javascript"> (function () { if (typeof Prism === 'undefined' || typeof document === 'undefined') { return; } function mapClassName(name) { var customClass = Prism.plugins.customClass; if (customClass) { return customClass.apply(name, 'none'); } else { return name; } } var PARTNER ...
<pre> <code class="language-css">// Variables $font-stack: Helvetica, sans-serif; $primary-color: #333; @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radius; } body { font: 100% $font-stack; color: $primary-color; } .box { @...
<p>Protect fake email </p> <pre> <code class="language-javascript">function validate_email() { var request; try { request= new XMLHttpRequest(); } catch (tryMicrosoft) { try { request= new ActiveXObject("Msxml2.XMLHTTP"); } catch (otherMicrosoft) { try { request= new ActiveXObject("Microsoft.XMLHTTP"); } ca...
<p>Hacker can damage your website data, they redirect your DNS, use the bandwidth, add malicious data and use illegal activity by someone license so how we secure </p>
Let's create a login form page a user can login. <form class="modal-contentloginform" id="table" method="post" action="<?php echo BASE_URL . 'login.php'; ?>" onSubmit = "return validate()"> <div class="header_login"> <?php include(ROOT_PATH . '/includes/errors.php'); ?> <?php include(ROOT_PATH . ...
In previous post we design the login form, so finallyΒ implement PHP code // LOG USER IN if (isset($_POST['login_btn'])) { $email = esc($_POST['email']); $password = esc($_POST['password']); $time=time()-60; $ip_address=getIpAddr(); $check_login_result= "SELECT count(*) as total_count from login_log WHERE try_time&g...
Upload and save a file in to a databaseΒ using PHP and MySQL. let's implement upload a file. create an upload form input file type <form method="post" action="" enctype="multipart/form-data"> <input type="file" name="File" id="File"> <button type="submit" class="btn" name="btn-upload">Upload</i></button> </form&g...
First when a user logged in put the logged in user in to a session $sql = "SELECT * FROM users WHERE (email='$email' OR username='$email') AND password='$password' LIMIT 1"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { $row = mysqli_fetch_assoc($result); // get id of created user ...
How to Add a Visitor Counter to a Website using PHP and MySQLΒ When a user visit a website and access the the content based on the IP address of the device and it will count the visitors. First create a table in MySQL database as shown in the picture below Then write a PHP code to count the visitorΒ /*visitor counter*/ function...
<p>RESPONSIVE IN HTML </p>