<?php
include('connection.php');

$i=1;
			mysqli_query($GLOBALS["___mysqli_ston"], "SET NAMES utf8");			
			$Comp_id="SELECT *  FROM `samiti2`";
			
$res=mysqli_query($GLOBALS["___mysqli_ston"], $Comp_id) or die('Query Failed: 4' . mysqli_error($GLOBALS["___mysqli_ston"]));
		
echo 
"<font size='2'><table border='1' bgcolor='white' style='border-style: solid; border-width: 1px;width:100%;height:50%;'>";

echo '<tr>
					<th scope="col" align="center">srno</th>                     
	    	<th scope="col" align="center">samitiname</th>                     
	    	<th scope="col" align="center">samitiname_eng</th>                     
	    	<th scope="col" align="center">name_eng</th>
	    	<th scope="col" align="center">designation</th>
    		<th scope="col" align="center">designation_eng</th>
    		<th scope="col" align="center">contact</th>
					<th scope="col" align="center">email</th>
			   <th scope="col" align="center">Update</th> 
			 <!--  <th scope="col" align="center">Disable</th> --> 
     ';

echo '</tr>';

	while($rw2 = mysqli_fetch_assoc($res))
			{
$srno=$rw2['srno'];
$name=$rw2['samitiname'];
$name_eng=$rw2['samitiname_eng'];
$padnam=$rw2['name_eng'];
$padnam_mar=$rw2['designation'];
$taluka=$rw2['designation_eng'];
$taluka_eng=$rw2['contact'];
$area=$rw2['email'];


		
				
echo ' <tr>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$srno.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$name.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$name_eng.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$padnam.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$padnam_mar.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$taluka.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$taluka_eng.'</td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$area.'</td>
    ';
  $i++;
echo "<td><button type='button' style='margin-left:0px;width:6em;' value='update' class='submit' onclick='update_company(".$srno .")'/>Update</button></td>";

echo '</tr>';
  //		break;
								}

Echo "

</table></font>



";		
		
	

?>