
2.0K Views
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>
<p>Article description is here</p>
<p>PHP </p>
Data insight using a Power BI is fun. 1. Performance Insight: - Performance insight refers to the analysis of various metrics and key performance indicators (KPIs) to evaluate the success or effectiveness of a particular aspect of a business, such as a product, marketing campaign, or team. - It involves monitoring and assessing metri...