Ver originalif (! $result){ ?><script>document.location.href='datos.php';</script>"<?phpexit();}else {