I am using the freeware MySQL search program DGS Search v0.9.6 from Digital Genesis with an online recipe database. I use it only for db search and not file search. The program is great and running very well.
My problem: When selecting a link from the search_results page to send a the search find to the recipe.php page to be parsed and displayed I cannot code the page to interpret the URL in the browser address window .
The url string is compiled as follows in the browser address for results.php page:
http://www.zzz.com/results.php?id='Red%20Chili%20Sauce',%20'Chili%20Powder',%20'Mexican'
I want to show the results as a readable text document. I know this is probably real simple however I'm new to php. Can someone point me to a resource or provide the code for the results.php page that would interpret the string in the url?
I've tried the following code that is straight out of the PHP manual page 1749:
<html>
<head>
</head>
<body>
<?php
$VAR= "php";
$php= '-r print_r( parse_url("http://username:password@hostname/path?arg=value#anchor"))';
Array
(
[scheme] => http
[host] => hostname
[user] => username
[pass] => password
[path] => /path
[query => arg=value
[fragment] => anchor
)
?>
</body>
</html>
I've also tried 'rawurldecode' and 'urldecode'. I sure would like some good hard direction from someone. I've been on several forums with this and cannot find a solution. Most of my hair is pulled out at this point.
Thanks a bunch!