I want to fetch single data in form by using PHP. Here is my code written in html file to fetch single data in form by using php
<form action="fetch.php" method="post">
<label for="namm">Name</label>;
<input type="text" id="namm" name="aa" value="<?php echo $row['namme']; ?>"><br>
<label for="pasa">Password</label>
<input type="password" id="pasa" name="aaa" value="<?php echo $row['paso']; ?>"><br>
</form>
And the php code written in php file are as
<?php
$con=mysqli_connect("localhost","root","","dela");
if(!$con)
{
die("could not connect".mysqli_connect_error());
}
$sql="SELECT * FROM reco WHERE namme ='advik'";
mysqli_query($con, $sql);
mysqli_close($con);
?>