Dear Experts,
I have following codes
[php]$sql = “SELECT * from contacts order by name” ;
$select = mysqli_query($con,$sql);
$row=mysqli_num_rows($select);
//echo ($row);
while($row = mysqli_fetch_array($select))
{
echo “
echo "
echo "
echo "
echo "
echo "
echo “
}
?>
[/php]
and Edit.php has this data
[php]<?php
require_once(“connect.php”);
$sno =$_GET[‘id’];
$query ="SELECT * FROM contacts WHERE id = $sno ";
$result=mysqli_query($con, $query);
if ($result){
while ($row = mysqli_fetch_array($result))
{
echo $row['name']."<br>";
echo $row['moba'];
}
}else{
echo "no data found";
}
?>[/php]
I press a link then related data must appear in related textboxes against selected id like shown in image
Please help