Home Blog Page 24

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 shortlearner.com, 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
-- https://www.phpmyadmin.net/
-- 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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" crossorigin="anonymous">
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" 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..

Improve your website Ranking with Social Media SEO meta Tags


Welcome back to Shortlearner.com, todays post is about meta tags.

Meta Tags are one of the most basic elements of SEO(search engine optimization). The search engines reads the meta tags to get a summarized idea of what your site is about and what exactly your keywords are.Meta tags list your site in Top.Meta tags are located inside your html’s head area.

Important attributes of meta tag:

How to apply for AADHAR CARD..?



in this post we learn  How to apply for AADHAR CARD..?. Friends, today we are going to talk about online registration for Aadhar card appointment.

Today, the Aadhar card has become necessary everywhere, whether you want a gas connection or you want to open a bank account or you can stop many of your work on Aadhar card without