How to open pop up window in mysql php page? Using table to display multiple row values, if i click (have one button at end of each row name like "view") any one row means it will display all information and it fetch values from mysql table.
<head>
<script language="JavaScript" type="text/javascript">
function PopWindow(url, win)
{
var ptr = window.open(url, win,
'width=850,height=350,top=100,left=100');
return false;
}
</script>
</head>
<body>
<table class="table table-hover table-nomargin dataTable table-bordered">
<thead>
<tr>
<th>S.NO</th>
<th>Shop Name</th>
<th>Owner Name</th>
<th>E-mail</th>
<th>Phone</th>
<th>Country</th>
<th>Option</th>
</tr>
</thead>
<tbody>
<?php
include 'connection/db_connection.php';
$sql=mysql_query("select * from franchise_list");
$i=1;
while($row=mysql_fetch_array($sql))
{
echo '<tr>
<td>'.$i.'</td>
<td>'.$row['shop_name'].'</td>
<td>'.$row['owner_name'].'</td>
<td>'.$row['email'].'</td>
<td>'.$row['phone'].'</td>
<td>'.$row['country'].'</td>
<td><a class="example7 btn" href="view_export.php?id='.$row['export_no'].'" rel="tooltip" onclick="return PopWindow(this.href, this.target);"><i class="icon-search"></i></a>
</td>
</tr>';
$i++;
}
?>
</tbody>
</table>
</body>
if i click "view" button link means it will open popup window and display values, fetch all values from mysql table using where clause. Same as each row.