You are on page 1of 1

<?

php

$id=$_POST['id'];

$conn=mysqli_connect("localhost","root","","db");

$sql="select * from customer where id='$id'";

$result=mysqli_query($conn,$sql);

if(mysqli_num_rows($result)>0)

while($row=mysqli_fetch_array($result))

echo <form method=post action=update_result.php>

id<input type="text" name="id" value=".$row['id'].">

<br><br>

name <input type="text" name="nm"

You might also like