You are here: Re: Parse URI « PHP Programming Language « IT news, forums, messages
Re: Parse URI

Posted by mtuller on 11/15/07 14:39

On Nov 15, 8:19 am, ZeldorBlat <zeldorb...@gmail.com> wrote:
> On Nov 15, 12:34 am, mtuller <mitul...@gmail.com> wrote:
>
> > I want to pull part of the URI out to dictate what is pulled from the
> > database. For example, I want to control what year data is displayed
> > with a url like this:http://www.mysite.com/display.php?year=2007
>
> > I want to pull out the 2007. I can grab the uri, but what is the best
> > way to pull out just the 2007?
>
> Do you just have a URL in a string or is it the URL of the actual
> request? If it's the URL of the request, that value would be in:
>
> $_GET['year']
>
> If it's in a string the other solutions posted here should work.

Yes, it is the URL of the request. LOL I thought it would be harder
than this. I was overthinking it. Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация