Viewing a specific item within a php web-page?
| From: | Carlos Palomino | Date: | Sun, 10 Apr 2005 01:23:06 +0000 |
| Subject: | Viewing a specific item within a php web-page? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212747@lists.php.net to get a copy of this message | ||
I have a document entitled: articles.php
Within this document, I want to store various written articles which are headed by a
string value - example:
$post_040905 = "text for April 9th 2005";
print($post_040905);
$post_041005 = "article for April 10th 2005";
print($post_041005);
How can I view a specific string's text via the browser? I thought I could use
domain.com/articles.php?post_040905 and only the content written for that post would
be shown. However, all of the posts are shown.
I just began reading about PHP from limited tutorials so I am at a loss as to how I
can accomplish this. I would appreciate all assistance in this matter.
Best Regards,
Carlos