|
Registered User Currently Offline
|
Posts: 32
Join Date: Jul 2005
|
Bear with me I'm not sure how to explain this right. I'm trying to learn php.
Anyway, I need to get the category name like I've gotten $title
I have a javascript on my board to pull in some related products on my superhero board. I put the $title in the output, but it only works part of the time because the search results or title might be something like "Iron Man is cool" vs just "Iron Man" So I figured if I could just get the category name "Iron Man" or "Superman" etc for example to populate the search request in the javascript, but I've looked and looked and I can't figure out how to do that. Maybe I'll understand it better when I take my php class this coming year, but any help would be greatly appreciated.
Code:
<script src="http://mysite/search/database.php?srch=$title&pg=1"> </script>
<script> fnPrintProducts(); </script> __________________
|