I am able to display records on same page but i have to display record one page to another page.I have seen many examples but can't quite get it right though.Would you please help me in this? one.php
$ids = $row["ID"];
$username = $row["Name"];
$search_d = array(
'id' => $ids,
'username' => $username,
);
$search_details = http_build_query($search_d);
header('Location: index.php?$search_details=1');
second.php
if(!empty($_GET['$search_details'])):
$name = $_GET['$search_details'];
print_r($name);
echo '<script>
setTimeout(function() {
swal({
title: "details done",
type: "success",
timer: 1500
});
}, 1000);
</script>';
endif;