I have an Ajax function to load all columns names and their values via php as follow:
PHP SIDE:
$res = $db->query($stmt); $rs