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

$i=1;
			mysqli_query($GLOBALS["___mysqli_ston"], "SET NAMES utf8");			
			$Comp_id="SELECT *  FROM `sadsy`";
			
$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">name</th>                     
	    	<th scope="col" align="center">name_eng</th>                     
	    	<th scope="col" align="center">padnam</th>
	    	<th scope="col" align="center">padnam_mar</th>
    		<th scope="col" align="center">taluka</th>
    		<th scope="col" align="center">taluka_eng</th>
					<th scope="col" align="center">area</th>
					<th scope="col" align="center">area_eng</th>
					<th scope="col" align="center">add</th>
					<th scope="col" align="center">add_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['name'];
$name_eng=$rw2['name_eng'];
$padnam=$rw2['padnam'];
$padnam_mar=$rw2['padnam_mar'];
$taluka=$rw2['taluka'];
$taluka_eng=$rw2['taluka_eng'];
$area=$rw2['area'];
$area_eng=$rw2['area_eng'];
$add=$rw2['add'];
$add_eng=$rw2['add_eng'];
$contact=$rw2['contact'];
$email=$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>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$area_eng.'</td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$add.'</td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$add_eng.'</td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$contact.'</td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$email.'</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>



";		
		
	

?>