• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Select based on ID

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

On one page I have




Basically I'm trying to select the details where the event = eventid

I had thought sessions might be the way to do this but I've got myself tied in knots, would someone be able to suggest where I'm going wrong or point me in the direction of a tutorial on the subject please?
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Given your first code snippet is the list of events and the second code snippet is for some processing.

Now you are using "cityid" not eventid for the link. Or just naming issue.

Your 2nd code snippet doesn't need to use SESSION but rather can use GET. Or make the first code snippet into a button/form and use POST.

I assume your 2nd code snippet works.
 
kevin lockard
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:Welcome to the Ranch.

Given your first code snippet is the list of events and the second code snippet is for some processing.

Now you are using "cityid" not eventid for the link. Or just naming issue.

Your 2nd code snippet doesn't need to use SESSION but rather can use GET. Or make the first code snippet into a button/form and use POST.

I assume your 2nd code snippet works.



Hi thanks, you were right the solution was simple in the end (I have a bad habit of over complicating things).





For anyone who might come across this thread at a later date make sure you set as



And not



IF you do it will give you an error message telling you to convert to a string.
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic