ask9 Posted April 8, 2011 Share Posted April 8, 2011 Hi guys Another basic question. I have this dynamic link when I click it, it redirect to this link below, http://samplesite.com/adventure/\'google.com\' How do I remove the main site --> samplesite.com redirect only to google.com? I also tried to remove the two slashes using stripslashes() but it won't. By the way here is the stripslashes() codes, while ($db_field = mysql_fetch_assoc($result)) { $title = $db_field['title']; print "Title: " . stripslashes($title) . "<br>"; print "Description: " . $db_field['description'] . "<br>"; print "Version: " . $db_field['version'] . "<br>"; print "Started: " . $db_field['started'] . "<br>"; print "Finished: " . $db_field['finished'] . "<br><br>"; } Thanks in advanced. Quote Link to comment https://forums.phpfreaks.com/topic/233107-url-is-redirecting-wrong/ Share on other sites More sharing options...
ask9 Posted April 8, 2011 Author Share Posted April 8, 2011 By the way here is the actual thing that I'm doing. http://coder9.com/adventure/ If you try to click google link for example under the kohana it redirect incorrectly. Thanks in advanced. Quote Link to comment https://forums.phpfreaks.com/topic/233107-url-is-redirecting-wrong/#findComment-1198852 Share on other sites More sharing options...
Pikachu2000 Posted April 8, 2011 Share Posted April 8, 2011 If you need to use stripslashes on data being retrieved from a database, there's a problem with the way you're inserting it to begin with. Quote Link to comment https://forums.phpfreaks.com/topic/233107-url-is-redirecting-wrong/#findComment-1198854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.