This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes PHP and the fly likes can't display Id on URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » PHP
Bookmark "can Watch "can New topic
Author

can't display Id on URL

kessy cruz
Greenhorn

Joined: Dec 13, 2010
Posts: 29
Good day, I have been on this for day. Please help me out. I will upload some of my files. *A list of category is displayed on d home page. When a user click on any of this category, it displays the list of preachers in that category. I can't get d category id on url. This is the error, Error loading page and localhost/ sitename/?category=. Thanks
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2452
    
    8

Hello there

Have you tried printing out the array $arr? Do the 'id' and 'categoriesID' have values?

Also what is the code look like when user clicks the link? If the link itself has the category ID in the first place, your Preacher class will definitely work.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
kessy cruz
Greenhorn

Joined: Dec 13, 2010
Posts: 29
I have not tried that, but when user click it does not get d Id. Should I upload the codes for you to examine?
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2452
    
    8

Generating parts of the URL (link) dynamically is what you should do (eg the id part). If that page has no access to such info then it surely be blank.
 
GeeCON Prague 2014
 
subject: can't display Id on URL