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 19

Make a Dynamic Progress Bar using Php.


Welcome back to
Today we will see how to make a dynamic progress bar,with help the of
bootstrap and php .

dynamic progress bar data
first of all, we should know about where the progress bar is used.
most of the time we see a company or an organisation set there milestone or target and they

Generate Enrollment Number Using PHP.


Welcome back to ,In today’s post we will see how to generate a school’s teacher unique id with the help of php .
before starting this tutorial first of all we need to know the basic concept of generating an unique id for every teacher.

how to generate enrollment number in php
guys most of the time we see that when we take admission in any university/college they provide us a 12 digit unique code, mostly known as enrollment number.with the help of this unique enrollment number the faculties/staff are able to search all of our information.

so basically our today’s concept is based on this kind of enrollment number of teacher.
we will do some little changes in the process of enrollment number..
we make a enrollment in easy format.
enrollment format : DPS250ASM148
in first 6 digit : DPS(first 3 digit of school code) and 250(last 3 digit of school code).
A (firstname of teacher or staff)
S (if middle name is not enter and designation is staff than it will show S, if middle name is not enter and designation is teacher than it will show T )
M (last name of the teacher or staff)
148 ( and the last 3 digits are random number).


<link href="//" rel="stylesheet" id="bootstrap-css">
<script src="//"></script>
<script src="//"></script>
<!------ Include the above in your HEAD tag ---------->

<div class="span3">
    <h2>Teacher/Staff Enrollment Processs</h2>
    <form method="post" action="submit.php">
    <label>First Name</label>
    <input type="text" name="teachername" class="span3">
     <label>Middle Name</label>
    <input type="text" name="teachermiddlename" class="span3">
    <label>Last Name</label>
    <input type="text" name="teacherlastname" class="span3">
    <label>School Code</label>
    <input type="text" name="schoolcode" class="span3">
<select class="span3" name="designation" >
    <option value="teacher">Teacher</option>
    <option value="staff">Staff</option>
    <input type="submit" value="Generate Enrollment Number" class="btn btn-primary pull-right">
    <div class="clearfix"></div>


    if( $teachermiddlename=="")
        else if($designation=="staff")
    $digits = 3;
    $idgen.=str_pad(rand(0, pow(10, $digits)-1), $digits, '0', STR_PAD_LEFT);
    echo $idgen;
    echo "</br>";


php script execution time measure


Welcome Back to
today we will see how to measure the loading time of a PHP page.
the below script is very useful for determining for your web server, if your php scripts loading time
php script execution time measure
is slow, it will take most of the CPU and RAM Resources.

How to Generate a Random Password in Php


Welcome Back to
today we will learn how to generate a random password with the help of php script .
In our previous post we learn how to check password and confirm password are same.
It’s always better to use a randomly generated password rather than your name,birthdate, city,state or your lover name.

random password generate in php

Import Data From txt File to MySQL Using Php


Welcome back to .Today we will learn how to insert data from a text file into mysql database by using php .

import txt data into mysql
we have two files, one is employee.txt file which contain employees name and email address, and another one is index.php file which contains code of fetching data from file and inserting into database.