PDA

View Full Version : website paging sumthing like that]


L1aRx
03-21-2009, 08:01 PM
hello-- (is this right section?)
i've seen some websites that end in

.php?something here=something [?p=blah]
.html?something=sumthing&more=more
etc...

it can be anything.. after the questiong mark lol
i just wanna learn how can i work w/ these?

Millenia
03-21-2009, 08:25 PM
It's to do with PHP (and ASP, sorry Cyan :)). Do you actually have any use for what you want to do, or do you just want to do it for the sake of it?

Apostropartheid
03-21-2009, 08:27 PM
You seem like a fluent speaker, so I'm going to tell you to at least attempt to use proper spelling and grammar when posting. It's respectful.

I don't believe it's only PHP: ASP should be able to use it too.

L1aRx
03-21-2009, 09:02 PM
^
^
@Millenia
Well.. I was thinking of using it for a fansite im working on
- yes, it's a fansite, nothing very big, but I want it a little fancy because I just want to try using more in the website(sort of a hobby, just to work on websites, I guess, haha) -
I just wanted it, with each page, to have links that come off of the main "topic" of the page..
I think it sounds pretty confusing the way i explained it, but i dont know how else to say it so i hope you understand it.


-----
^
@CyanLight
Sorry for the spelling and grammar. I'm just used to typing that way on many forums, chatting online, and stuff like that.

also, I have also seen it on .html pages [?] and many other that i've fortgotten

Apostropartheid
03-21-2009, 10:00 PM
It's alright, but in these parts it's good form.

These .html pages have been probably set serverside to be parsed by PHP.

L1aRx
03-21-2009, 10:15 PM
ohh thanks for the replies :]
Are there any good sites that can help me learn more about this [or is it just php]?

ShaneC
03-22-2009, 01:51 AM
@ The .html comment: Also, some webhosts (like myself) enjoy being tricky and using Apache's mod_rewrite to mask the address with some fun and exciting extensions.

As for pagination, frankly PHP is your best bet if you're new to programming. PHP, in my opinion, has an easier to learn syntax and a very good error reporting engine.

Here are some links to help you get a feel for PHP pagingation:
Good example code (http://php.about.com/od/phpwithmysql/ss/php_pagination.htm)
A premade script with some good explanation (http://phpsense.com/php/php-pagination-script.html)
And a (seemingly at first glance) indepth tutorial on the subject (http://www.tutorialized.com/view/tutorial/Pagination-with-PHP/6925)