Created
February 15, 2017 16:06
-
-
Save anonymous/741cf9da1f65716d91bc08d176270fd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'db.php'; | |
$gettitle = $_GET['title']; | |
$query = mysql_query("SELECT * FROM url WHERE title = '$gettitle'"); | |
$fetch = mysql_fetch_array($query); | |
$url = $fetch['url']; | |
if ($gettitle != $fetch['title']) { | |
header('Location:index.php'); | |
}else{ | |
header('Location:'.$url.''); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment