Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't display Id on URL

 
kessy cruz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3395
13
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kessy cruz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3395
13
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic