yourdomain.com/index.php?page=17... <--- how do you do th

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
boo_lolly
Forum Contributor
Posts: 154
Joined: Tue Nov 14, 2006 5:04 pm

yourdomain.com/index.php?page=17... <--- how do you do th

Post by boo_lolly »

is this what they refer to as sessions? i'm building a small part of a CMS. four pages to be exact. obviously sql is involved. many removing and creating tables or rows, retrieving sql arrays. basic but a lot of it.. what i'd like to do, tho, is take this opportunity to learn what i think is called sessions. does anybody have a link, a tutorial, or just plain old advice? thanks in advance.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

No, that's referred to as a query string, or page id (depending on which part you're talking about.)

If you want to learn about sessions, session_start() is a decent jumping off point. Just play around with them. If you have a specific question regarding them, ask.. but make sure to search first. ;)
User avatar
boo_lolly
Forum Contributor
Posts: 154
Joined: Tue Nov 14, 2006 5:04 pm

Post by boo_lolly »

thanks a lot. what would i search for? for some reason i believe this task will call for a switch() statement. maybe it will be inside an include?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

When using ID's, it's usually a simple matter of composing the query string with the given information. Now, because this value can be controlled by a user, we must validate it and verify that it is valid before attempting to compose the query. For the most part, the composition will consist of using strings.
Post Reply