based on id
$result = mysqli_query($connection, "SELECT * FROM student WHERE id=$id");
while($user_data = mysqli_fetch_assoc($result))
{
$username = $user_data['username'];
$User_email = $user_data['email'];
$user_phone = $user_data['phnnum'];
$user_address = $user_data['address'];
}
?>
Guys that's the code for setting the fields with user data when the edit button is clicked but unfortunately it doesn't work
Well whats the issue you are having with this exactly?
also you don't need the while loop for this.
Обсуждают сегодня