Jump to content

Url decode to mysql query


acegames

Recommended Posts

Sorry for my first post being a request for help :)

 

I have a simple database that lists files and the url is sent encoded

 

I need to use the decoded url parameters as a query with my mysql database

 

$unencodedP = urldecode($_REQUEST['p']);

echo "<a href='page.php?$unencodedP'>Decoded Url</a><br/>";

 

This displays the decoded url and when i click it the results are displayed from the mysql database but i want to skip having to click it and submit the decoded url to the database

 

Or is there a way to load the page with the decoded url and not the encoded one

 

 

I really hope someone can help me with this as I am really new to php

 

Dave

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/56722-url-decode-to-mysql-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.