here the code that i use to display a message, but i want it to direct to other page.
$result = $db->query($insert_sql) OR die('query entry error'. $db->error);
if ($result)
{
echo json_encode('success');
// echo 'success';
**-----> i want to redirect to other page here**
}
}
else
{
echo json_encode('Invalid Data Entry');
}