I write this below function for Fetch fields from DATABASE but it does not work :
function Refresh_TBL_post() {
global $conn;
#DB Query Comment
$stmt = $conn->prepare("SELECT * FROM post WHERE id=? ");
$stmt->bind_param("s", $_REQUEST['editpostId']);
#Run Query In DB
$stmt->execute();
#Get Count Of Rows
#Refrsh $stmt
$stmt->get_result();
$row = $stmt->fetch_assoc();
return $row;
}
And i call this function like this Refresh_TBL_post();
but it does not works . How can i fix it ?