Sanit 0 Newbie Poster

Hi guys,

I have a bit of a problem here. I have dynamic URLs which are changed using mod_rewrite from 'example.php?id=204' to '/example/title-of-story-from-db/'.

My problem is that I need to call a function through a link on either the example.php page or another separate page which uses information from the example.php page.

I have tried using a switch and isset and that didn't work because it needs a page to work off (i think) i.e. '/example/page.php?whatever=6' and not '/example/title-of-story/?whatever=6'.

Right now, I am trying to make the link link to a separate page which contains the function, and bring some of the database info with it so it can be processed within the function.

I hope I made it clear enough so you can understand.

Any help or a point in the right direction would be much appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.