Tuesday, 1 November 2016

Why creating span tag in react js / Unwanted span tags showing in firebug when I using react js

Very Interesting thing is when I started react js in browser im seeing unwanted span tags, but inside of editor nothing im not wrong..

When we using react js we need follow standard things
if we use spaces like <div> <link></link></div> between tags span tags automatically will create

Thursday, 27 October 2016

Onclick anchor tag that value insert into input text / onclick insert value in textbox / add value using jquery

  •  Onclick anchor tag that value insert into input text
  • Jquery code mandatory in bottom not header
  • Wherever use that code I explained into UL inside also


<ul  class="dropdown-menu listofcustomers">
                <input type="text" class="searchbox" id="searchlist"    />
                            <li><a href="#">Option 1</a></li>
                            <li><a href="#">Option 2</a></li>
                            <li><a href="#">Option 3</a></li> 
                            <li><a href="#">Option 4</a></li>
                           
                    </ul>
                   
                    <!-- need to change based on your version -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script type="text/javascript">
$('.listofcustomers a').click(function() {
  var value = $(this).text();
  var input = $('#searchlist');
  input.val(value );
  return false;
});
</script>

How can remove textarea right bottom corner in dots / remove dots in text area / remove dots in bottom of textarea

How can remove textarea right bottom corner in dots / remove dots in text area / remove dots in bottom of textarea

.abc{resize: none;}


Tuesday, 4 October 2016

How can add fevicon to website

Add this code <link rel="icon" href="images/favicon.ico" type="image/x-icon" />
between <head></head>


put image in images folder
in above code image is .ico but use any format png or gif whataver

Monday, 3 October 2016

List of world countries


Afghanistan
Albania
Algeria
Andorra
Angola
Antigua and Barbuda
Argentina
Armenia
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bhutan
Bolivia
Bosnia and Herzegovina
Botswana
Brazil
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cabo Verde
Cambodia
Cameroon
Canada
Central African Republic
Chad
Chile
China
Colombia
Comoros
Congo
Costa Rica
Côte d'Ivoire
Croatia
Cuba
Cyprus
Czech Republic
Democratic People's Republic of Korea (North Korea)
Democratic Republic of the Cong
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Fiji
Finland
France
Gabon
Gambia
Georgia
Germany
Ghana
Greece
Grenada
Guatemala
Guinea
Guinea-Bissau
Guyana
Haiti
Honduras
Hungary
Iceland
India
Indonesia
Iran
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kiribati
Kuwait
Kyrgyzstan
Lao People's Democratic Republic (Laos)
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Mauritania
Mauritius
Mexico
Micronesia (Federated States of)
Monaco
Mongolia
Montenegro
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
New Zealand
Nicaragua
Niger
Nigeria
Norway
Oman
Pakistan
Palau
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Poland
Portugal
Qatar
Republic of Korea (South Korea)
Republic of Moldova
Romania
Russian Federation
Rwanda
Saint Kitts and Nevis
Saint Lucia
Saint Vincent and the Grenadines
Samoa
San Marino
Sao Tome and Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Sudan
Spain
Sri Lanka
Sudan
Suriname
Swaziland
Sweden
Switzerland
Syrian Arab Republic
Tajikistan
Thailand
Timor-Leste
Togo
Tonga
Trinidad and Tobago
Tunisia
Turkey
Turkmenistan
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom of Great Britain and Northern Ireland
United Republic of Tanzania
United States of America
Uruguay
Uzbekistan
Vanuatu
Venezuela
Vietnam
Yemen
Zambia
Zimbabwe

Friday, 23 September 2016

Add / Remove Item for JQuery / html code

<script src="Path"></script>
 <script>
    $(document).ready(function(){
    $("span").click(function(){
    $(this).parent().remove();
   });

})
</script>
<ul class="uploadedfiles-list">
<li><a href="#">filename1 <span>X</span></a></li>
<li><a href="#">filename1 <span>X</span></a></li>
<li><a href="#">filename1 <span>X</span></a></li>
</ul>


Thursday, 15 September 2016

Text trim using css by media query wise also possible

Text trim using css by media query wise also possible

It is very interesting thing  we can trim display (limited text characters by css classes).

if some times heading-titles will distrub to 2nd lines so in mobiles or wherever we can do with css limit display carachters

if in large resolution u can display all text..

.text-limit-inmobile{
     white-space: nowrap  !important;
  overflow: hidden  !important;
  text-overflow: ellipsis  !important;
  max-width:450px !important; display:inline-block !important; line-height:inherit;
    }

Friday, 26 August 2016

Select All - onclick single select box need select all check boxes


Select All - onclick single select box need select all check boxes

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>

<body>

<h2> This is for select all check boxes with <strong>single check box</strong></h2>
<input type="checkbox" id="ckbCheckAll" /> Select All
    <p id="checkBoxes">
        <input type="checkbox" class="checkBoxClass" id="Checkbox1" /> Radio
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox2" /> TV
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox3" /> Mobile
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox4" /> Tablet
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox5" /> Laptop
        <br />
    </p>
    
    <script>
    $(document).ready(function () {
    $("#ckbCheckAll").click(function () {
        $(".checkBoxClass").prop('checked', $(this).prop('checked'));
    });
});</script>
</body>
</html>

Monday, 15 August 2016

How reduce div background color opacity without effect to inside content or links

Hi,
I really Amazing.. I read many forums regarding how can reduce background DIV opacity without effect inside content or images... In all forums I find answer not possible, everyone saying some thing some things not working different browsers finaly top forums also saying not possible this thing but My requirement is need 100% this thing so I done experiment so successfully it is working

Just use like :   background : rgba(248, 248, 248, 0.7) !important ;
248 means it is white so white will transparent, if you need black background transparent use like
background : rgba(0, 0, 0, 0.7) !important ;

Thursday, 11 August 2016

Mobile Jquery External Links - How can add external links to mobile jquery website or application

Really I surprised everything is completed My mobile portal and I uploaded to  QA for testing but page links not working, really I surprised why it is not working everything is correct but not working...


This is mobile mobile portal and links working internal pages when I give other website links it is not working,,.... it is inteasting thing but I find solutions need to give

  rel='external' 

<a href='path'  rel='external'    >Link Text</a>

Sunday, 24 April 2016

Bootstrap DatePicker / Bootstrap Datepicker /datepicker

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Calender</title>

    <!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/css/bootstrap-datepicker.css" >
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">

   

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
   
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
   
  </head>
  <body>
   <div class="input-group date" data-provide="datepicker" id="id3">
    <input type="text" class="form-control">
    <div class="input-group-addon">
        <span class="fa fa-calendar"></span>
    </div>
</div>
 

  
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->   
   <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min.js"></script>       
       
         <script type="text/javascript">
            // When the document is ready
            $(document).ready(function () {
               
              $('#id3').datepicker({
                    format: "dd-M-yyyy"
                });
           
            });
        </script>
       
       
  </body>
</html>


Date Picker Download

Thursday, 17 March 2016

Bootstrap responsive grid / Responsive table / Grid

Responsive Grid / Table responsive

Only need to change bootstrap file path



<!DOCTYPE html>
<html>
<head>
<title>Search Results</title>

<!-- this is CDN so if not avilable css files here you will give your css comman paths -->
<link rel="stylesheet" href="css/bootstrap.min.css"   />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">




 <style>
 /* this code for custom css file */
 .tablesorter th{ background:#e6eeee;}
.tablesorter, .tablesorter td, .tablesorter th{ border-collapse:collapse !important; border:solid 1px #ccc !important; text-align:center;vertical-align:middle !important;}
.pagination > li > a.active{ background-color:#eee !important;}

table.tablesorter tr:nth-child(even) {
    background-color:#f3f1f1;
}

table.tablesorter tr:nth-child(odd) {
    background-color:#fff;
}
.detailsnow{ padding:15px 20px; background:#e6eeee; margin:6px 0px !important; text-align:center;}
/*.detailsnow p a{ font-weight:bold; color:##337ab7; font-size:16px;}*/
.detailsnow p{ font-weight:bold; font-size:15px}
.bussearcharea{ padding:15px 20px; background:#e6eeee; margin:6px 0px !important; text-align:center;}

.busrow-odd{background-color:#f3f1f1; padding-top:8px; padding-bottom:8px; margin-left:0px !important; margin-right:0px !important;}
.busrow-even{background-color:#fff; padding-top:8px; padding-bottom:8px;  margin-left:0px !important; margin-right:0px !important;}
.margin0px{ margin :0px !important;
}
</style>

</head>
<body>
                              
                   
                             
                              
                             
                             
                             
                             <div class="table-responsive">
            <table class="tablesorter table table-striped" >
              <thead>
                <tr>
  <th class="header">Order Id</th>
                    <th class="header">IPex Order Id </th>
                  <th class="header">Product Name</th>
                  <th class="header">Product Id</th>
                  <th class="header">Quantity</th>
                  <th class="header">Unit Price</th>
                    <th class="header">Total Amount</th>
                    
                </tr>
              </thead>
              <tbody>
                <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
               <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
               <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
               <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
               <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
               <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
               <tr>
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">10229</td>
                      <td>32 Inches LCD TV -  Samsung</td>                 
                      <td align="left" valign="top">10229</td>
                      <td align="left" valign="top">3</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 120</td>
                      <td align="left" valign="top"><em class="fa fa-inr"></em> 360</td>
               </tr>
              <tr>
                      <td style="text-align:right" align="right" valign="top" colspan="6"><strong>Total</strong></td>
                       
                      <td><i class="fa fa-inr"></i> 33,909.00</td>                 
                       
               </tr>
       
       
              </tbody>
            </table>
          </div>
          
<!--       <div class="nav pull-right">
      <ul class="pagination">
        <li><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
        <li><a href="#" class="active">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>
      </ul>
   
</div>  --> 
  
 </body></html>

Thursday, 3 March 2016

Angular JS - Calculations


<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>

<div ng-app="">
<input type='text' ng-model='pay'>

<p>Due Amount: {{2000- pay}}</p>
</div>

 Out Put

 2000 - paid amount = still due


Angular Js Array

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>


<div ng-app="" >
<div ng-init="name=['aaa','bbb','ccc','dddd']"></div>
  <div>
    <span ng-repeat="x in name">
      {{ x }}
<br>
    </span>

  </div>
</div>

 

Mobile Slider / Swiping Slider / Responsive Slider

  • Swiping Slider with Simple Integration
  • Single Image
  • Multi Images
  • Auto Scroll / Normal
  • Everything is Configurable 
  • Responsive / Mobile Compatibility

Download Code Here

Jquery Data Grid with Sorting / Data Grid for Sorting, Jquery data grid

Most exacting Jquery Data Grid, simple integration no need more technical knowledge also.










  

 Download Code here




Monday, 8 February 2016

HTML / CSS / Javascript / PHP Comments

HTML / CSS / Javascript / PHP Comments


HTML Comment = <!-- this is content -->
CSS Comment = /* style or class will goes here */
<strong>Javascript Comments</strong>
Javascript Comment (Multi Line Comment) = /* javascript code here */
Javascript Comment (Single Line Comment) = /* javascript code here */
<strong>PHP Comments</strong>
PHP Multi Line Comment /* code */
PHP Single Line Comment // code

Border for table, th & td also / Table Borders

<style>
table {
    border-collapse: collapse;
}

table, td, th {
   border: 1px solid black;
}
</style>

<h2>Border for table, th & td also</h2>
<p>simple code for complete table border, table border with small css, simple code for th, td, table border</p>

<table width="300">
  <tr>
    <th>Name</th>
    <th>Class</th>
  </tr>
  <tr>
    <td>Sam</td>
    <td>6th</td>
  </tr>
  <tr>
    <td>Ravi</td>
    <td>5th</td>
  </tr>
</table>

Screenshot

Wednesday, 3 February 2016

Table row alternate background color or How can change alternate row background color

Table row alternate background color or How can change alternate row background color
<style type="text/css">
table, th, td { width:500px; border:1px solid #ccc; border-collapse:collapse;}

table tr:nth-child(even) {
    background-color: #e1e2e0;
}

table tr:nth-child(odd) {
    background-color:#fff;
}
</style>

<div class="boxernew">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr class="theader">
    <th align="center" valign="middle">Name</th>
    <th align="center" valign="middle">Username</th>
    <th align="center" valign="middle">Mobile</th>
    <th align="center" valign="middle">Email</th>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
</table>

</div>

Table border / How can add border for Table, TR & TD

<style type="text/css">
table, th, td { width:500px; border:1px solid #ccc; border-collapse:collapse;}


</style>

<div class="boxernew">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr class="theader">
    <th align="center" valign="middle">Name</th>
    <th align="center" valign="middle">Username</th>
    <th align="center" valign="middle">Mobile</th>
    <th align="center" valign="middle">Email</th>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
</table>

</div>

Friday, 29 January 2016

How can remove ads in browser / Remove ads in browsers

You seeing Unwanted ads when you open any website ?
Ok some times no application will not find in control panels also I faced this problem,

When I opened ecommerce portals in Mozila showing many ads but that ads not from websites, It is only local system will display ads in browsers


So I have good 3 steps it is very Useful to everyone
  1.  Open add-ons check once if added any addons, If you have addons please disable once
  2. Go to check control panel and check once any unwanted applications installed? if installed please remove it.
  3. Very Important : If showing any Unwanted applications in START MENU please right click find 'file path' go and delete that folder.
  4.  Once restart your system
Some times if not uninstall in control panel also no problem 3rd Point will work perfectly.

Insert data Query in PHP / PHP Insert record code / Insert record Query in PHP

<?php
$hostname='localhost';
$username='root';
$password='';
$connect=mysql_connect($hostname,$username,$password);
mysql_select_db('learning');

if(isset($_POST['submit1']))
    {
        $admission_number=$_POST['admission_number'];
        $first_name=$_POST['first_name'];
        $last_name=$_POST['last_name'];
        $mobile1=$_POST['mobile1'];
   
    $data="insert into students (pid,admission_number,first_name,last_name,mobile1) values ('','$admission_number','$first_name','$last_name',$mobile1)";
    mysql_query($data);
   

    if($data==true)
     {
        echo "Inserted";
     }
    else
    {
       echo "Error";
     }

    }


?>

<form id="form1" name="form1" method="post">
  <table width="360" border="0" align="center" cellpadding="5" cellspacing="0">
    <tbody>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="169">Admission Number</td>
        <td width="171">
        <input type="text" name="admission_number" id="admission_number"></td>
      </tr>
      <tr>
        <td>First Name</td>
        <td><input type="text" name="first_name" id="first_name"></td>
      </tr>
      <tr>
        <td>Last Name</td>
        <td><input type="text" name="last_name" id="last_name"></td>
      </tr>
      <tr>
        <td>Mobile</td>
        <td><input name="mobile1"  type="text" id="mobile1"  maxlength="10"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type="submit" name="submit1" id="submit1" value="Submit"></td>
      </tr>
    </tbody>
  </table>
</form>

Add Remove Classes Using JQuery / Add or Remove Class JQuery

 <style>
  p {
    color: red;
    margin: 5px;
    cursor: pointer;
  }

  .activecolor{color:#fff; background:red; padding:5px;}
  </style>
  <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <!-- CDN Network -->



<p>First Paragraph</p>
<p>Second Paragraph</p>
<p>Yet one more Paragraph</p>

  <script>
$("p").click(function() {
      $("p.activecolor").removeClass('active');
  $( this ).addClass('active');
});
</script>

Fetch Data in PHP / Get Details from Database / Fetch Information in PHP / While Loop in PHP / Select * from PHP

How can Fetch data in PHP ?
Read data from server in PHP & While Loop in PHP


<?php
include('connection.php');
$table="select * from students";
$query=mysql_query($table);
?>

<table width="400" border="0" cellspacing="0" cellpadding="0">
  <tbody>
 <tr>
      <th  >ID</th>
      <th  >Admission No</th>
      <th  >First Name</th>
      <th  >Last Name</th>
      <th >Mobile 1</th>
    </tr>
     <?php  while($row=mysql_fetch_array($query)) {     ?>
    <tr>
      <td><?php echo $row['pid']; ?></td>
      <td><?php echo $row['admission_number']; ?></td>
      <td><?php echo $row['first_name']; ?></td>
      <td><?php echo $row['last_name']; ?></td>
      <td><?php echo $row['mobile1']; ?></td>
    </tr>
    <?php }?>
  </tbody>
</table>

PHP Connection / Database Connection / PHP Mysql Database Connection

PHP Connection / Database Connection / PHP Mysql Database Connection
 <?php
$hostname='localhost';   // Hostname
$username='root';  // Username
$password=''; //Password
    $connect=mysql_connect($hostname,$username,$password);
    mysql_select_db('learning');
    /*
    if($connect==true)
        {
            echo "true";
        }
    else
        {
        echo "error";
        }*/   


?>