Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP] reading a URL...

0 views
Skip to first unread message

Renze Munnik

unread,
Mar 26, 2001, 9:32:30 AM3/26/01
to
Just use $id in your code. That should do the job.
Variables that are passed using GET or POST you can just use in your
code. Ofcourse you have to add the $-sign. So if you use the URI:

http://www.arandomsite.com/news_story.php?id=123

You can just use:

"SELECT xxx FROM yyy WHERE id=$id"

RenzE.

On Mon, Mar 26, 2001 at 02:26:27PM +0000, Tristan...@risk.sungard.com wrote:
>
>
> 'ello,
>
> Is it Possible, in PHP to read a URL?
>
> What I am trying to do is this...
> I have many news stories in a database, and a single static news page, that
> calls the story, and the corresponding headline.
> I have looked about on-line, and seen a common URL,...
>
> http://www.arandomsite.com/news_story.php?id=123
>
> I have adopted this method, and it only displays the top most story in my
> database, no matter what news ID I use.
>
> Can I get the ID number from the URL?, and then pass that to the SQL statement?
>
> I cannot find a tutorial or similar on-line anywhere.
>
> Hope you can help,
> Tris...
>
> P.S, after getting this all set up, my boss asked me to turn everything into
> .jsp pages.
> SO, I am off to buy a "JSP in 20 seconds" Type books, any ideas?
>
>
>
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
>
> **********************************************************************
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general...@lists.php.net
> For additional commands, e-mail: php-gene...@lists.php.net
> To contact the list administrators, e-mail: php-lis...@lists.php.net

--


Mvg,

Renze Munnik
Manager Business Development
DataLink BV

E-mail : re...@datalink.nl
Telefoon: 023-532.61.62
Fax : 023-532.21.44
Mobiel : 06-218.111.43

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general...@lists.php.net
For additional commands, e-mail: php-gene...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net

0 new messages