Re: hyperlink and mySQL
| From: | Bobby Patel | Date: | Sat, 18 Jan 2003 23:48:13 +0000 |
| Subject: | Re: hyperlink and mySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132134@lists.php.net to get a copy of this message | ||
I have done something similar:
write a script that takes an Article ID, and displays the text. So to
displat article #3, you would call it like getArticle.php?id=3.
Skelton for getArticle.php
- take id and store in $id
- Select FullBody from Articles where ID = $id
- $body = query['FullBody']
- then echo $body
That's the basic idea, if you have any problems email me and post to the
list.
"M.E. Suliman" <essa@netactive.co.za> wrote in message
news:000f01c2bf1b$e95fff40$4abe1fc4@b1s0n2...
> Hi
>
> I have created a simple script that pulls the three latest news entries
from
> a mySQL database and displays it on a webpage. At the end of the preview
> paragraph of the news story there is a hyperlink to access the full text
> specific to that preview. How would I do this? Any ideas would be
> appreciated.
>
> Mohamed
>