Handling url variables with php
Posted: Tue Jul 29, 2003 4:16 pm
Can anyone give me the syntax for handling a url variable using php. I'm getting quite far with php.(A newbie moving from CF and begrugingly admitting that php perhaps rocks ever so slightly!). I am creating a new site and forcing myself to do it entirely in php! The site doesn't have to be published 'til January '04 so I'm not under severe pressure at least.
Anyway, I'm creating a record listing from a db and I want the customer to be able to click on column heads in the results table to re-sort the listing by various fields such as surname, date etc. The page will call itself each time and I'm using a dynamic sort variable within the sql query, but my php book gives no examples of a url variable being used in an action page. A rough idea will suffice just to get me going,
cheers
Mike
Anyway, I'm creating a record listing from a db and I want the customer to be able to click on column heads in the results table to re-sort the listing by various fields such as surname, date etc. The page will call itself each time and I'm using a dynamic sort variable within the sql query, but my php book gives no examples of a url variable being used in an action page. A rough idea will suffice just to get me going,
cheers
Mike