What database fields does the url refer to?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
coopersred
Posts: 35
Joined: Thu 8. Apr 2004, 14:40

What database fields does the url refer to?

Post by coopersred »

Hi,

Could someone please explain the URL format to me. For example, in

mysite.com/index.php?id=177,1883,0,0,1,0

the first number (177) is the article category id, and the second (1883) is the article id - what fields in the database do the last four refer to?
Is there than six fields in the URL?

Thanks
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: What database fields does the url refer to?

Post by flip-flop »

Hi,

I think it is the same like this: System variables

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
coopersred
Posts: 35
Joined: Thu 8. Apr 2004, 14:40

Re: What database fields does the url refer to?

Post by coopersred »

Perfect - thanks
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: What database fields does the url refer to?

Post by Oliver Georgi »

Concentrate only on the first and second - when linking against article and/or category:

Always use the following order:
  1. index.php?alias (no difference if article or category)
  2. index.php?aid=ArticleId
  3. index.php?id=CategoryId
If you try to form own links inside the page only use

Code: Select all

rel_url(
  array('add_getvar1'=>'getvalue1', 'add_getvar2'=>'getvalue2'),
  array('remove_getvar3'),
  'alias' // link against that page or 'aid=articleId' or 'id=categoryId'
);
abs_url();
Then you can be sure that all of your current GET vars are used or removed.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply