I have the below php statement that gives me the exit 'error' on some initial page loads however when I refresh the page it works fine.
What I would like to do is take the exit result and make it so the script would refresh.
Would I have to store it in an array?
if (!$results || !property_exists($results, 'success')) {
exit('Error');
}