New to our community ?

Discover a world of possibilities! Join us and explore a vibrant community where ideas flourish and connections thrive.

One of Our Valued Members

Thank you for being part of our community. Your presence enriches our shared experiences. Let's continue this journey together!

Home Blog Page 24

PHP Login Script With Remember me.


welcome back to , In this tutorial we will see how to make a login form with remember me feature. In this example we are using PHP cookies for preserving user login and password.
PHP Login Form
This code shows login form with PHP code to pre-populate user login and passsword. this form has a remember me check box. if it is set then the login details entered by the user will preserved for future login attempts.

login with remember me option in php

Generate PDF from MySQL Data using PHP.


In this tutorial I explains how to generate PDF from MySQL Data using PHP. You are going to see how to convert MySQL Data into PDF using FPDF library.
Before start learning first of all we should know about Fpdf.

What is Fpdf.?

The FPDF is awesome PHP class to generate PDF using PHP from MySQL/MySqli database.This is open source php library to generate pdf file using PHP.
Awesome Features of FPDF.

  • Choice of measure unit, page format and margins.
  • Page header and footer management.
  • Automatic page and line break with text justification
  • Image support (JPEG, PNG and GIF).
  • Colors
  • Links
  • TrueType, Type1 and encoding support
  • Page compression.

Make Text to Speech Convert Software Just in a Minute.?


Welcome back ,today we will learn how to make our own text to speech  convert software. So first of all we need to know the working process of software.

So basically this software can convert our text data into voice, its very easy to develop this software, and one more intresting thing is that in this software you don’t need to have any type of knowledge of any kind of programming languages.That means if you belongs to non-technical  fields ,you also can develop this software…

Step 1 :

In the first step, open your notepad

How to Export Mysql table in CSV format.?


In the  previous post you see  how to Import an Excel file in Mysql database . Now In this tutorial, we will see how to Export or Download Mysql table in Excel Sheet form.
The CSV  stands for comma separated values. You often use the CSV file format to exchange data between applications such as Microsoft Excel, Google Docs, etc.

Import an Excel file in MySql Database using php


welcome back to, In this tutorial, we will see how to Import an Excel file in Mysql database. In the First step we will create a Database to insert an excel data into Mysql table, a form to make a view to upload an Excel Sheet and also create a PHP script to perform operation to insert data into Database.

Create Database

To Insert excel sheet data into MySql database, we need to create a database named as ‘test_excel’ and also create a table named as ‘excel_sheet’

Also Read :
How to Install PHP on CentOS.
How to integrate Razorpay Payment Gateway using PHP.

PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

-- phpMyAdmin SQL Dump
-- version 4.7.0
-- Host:
-- Generation Time: Dec 13, 2017 at 01:51 PM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 5.6.31

SET time_zone = "+00:00";

/*!40101 SET NAMES utf8mb4 */;

-- Database: `test_excel`

-- --------------------------------------------------------

-- Table structure for table `excel_sheet`

CREATE TABLE `excel_sheet` (
  `website` varchar(255) NOT NULL,
  `category` varchar(255) NOT NULL



after creating database , we move on the config.php page.. here we make a database connection.

function getdb(){
$servername = "localhost";
$username = "root";
$password = "";
$db = "test_excel";

try {
    $conn = mysqli_connect($servername, $username, $password, $db);
     //echo "Connected successfully"; 
catch(exception $e)
    echo "Connection failed: " . $e->getMessage();
    return $conn;


after creating database , we move on the index page.. in the index page we take a csv file from our computer and redirect it to functions.php page . where we check that the file which is selected is CSV  or not.

<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="" crossorigin="anonymous">
    <link rel="stylesheet" href="" crossorigin="anonymous">
    <script src="" crossorigin="anonymous"></script>
    <div id="wrap">
        <div class="container">
            <div class="row">
                <form class="form-horizontal" action="functions.php" method="post" name="upload_excel" enctype="multipart/form-data">
                        <!-- Form Name -->
                        <legend>Form Name</legend>
                        <!-- File Button -->
                        <div class="form-group">
                            <label class="col-md-4 control-label" for="filebutton">Select File</label>
                            <div class="col-md-4">
                                <input type="file" name="file" id="file" class="input-large">
                        <!-- Button -->
                        <div class="form-group">
                            <label class="col-md-4 control-label" for="singlebutton">Import data</label>
                            <div class="col-md-4">
                                <button type="submit" id="submit" name="Import" class="btn btn-primary button-loading" data-loading-text="Loading...">Import</button>


In this page we catch the file and check it , if our file is  csv than it import into database otherwise it shows the error and redirect to index.php page.



		 if($_FILES["file"]["size"] > 0)
		  	$file = fopen($filename, "r");
	        while (($getData = fgetcsv($file, 10000, ",")) !== FALSE)

	       echo     $sql = "INSERT into excel_sheet (website, category) 
                   values ('".$getData[0]."','".$getData[1]."')";
                   $result = mysqli_query($conn, $sql);
					echo "<script type=\"text/javascript\">
							alert(\"Invalid File:Please Upload CSV File.\");
							window.location = \"index.php\"
				else {
					  echo "<script type=\"text/javascript\">
						alert(\"CSV File has been successfully Imported.\");
						window.location = \"index.php\"


Keep Learning..