If possible, when article 3 is clicked on, article 5 is dumped and article
3 is readable.
What would be some viable ways of doing this?
Yes. A number of viable ways. All using Javascript (possily AJAX) or HTML
(possibly forms or plain links with "parameters").
This is not a PHP question. PHP runs on the server and knows absolutely
nothing about things being clicked on.
Or did you miss that last time you were told RtS?
> "richard" <mem...@newsguy.com> wrote in message
> news:rly8vsoqcpva$.1d5foa92phncn$.dlg@40tude.net...
>> Let's say I have a blog and I have 10 articles on that blog.
>> Instead of loading the entire text for all 10 articles, I want
>> only the article titles to load initially. Then when the user
>> clicks on say article 5, only that text file is called and
>> displayed.
>>
>> If possible, when article 3 is clicked on, article 5 is dumped
>> and article 3 is readable.
Maybe just me, but I don't get your meaning here. What do you
mean by "article 5 is dumped"?
>> What would be some viable ways of doing this?
>
> Yes. A number of viable ways. All using Javascript (possily
> AJAX) or HTML (possibly forms or plain links with "parameters").
>
> This is not a PHP question. PHP runs on the server and knows
> absolutely nothing about things being clicked on.
<snip>
As far as I can tell, client-side scripting need not necessarily
be involved here.
@OP:
The initial page load would simply involve querying the database
for article titles. You could output the titles as links, the
query strings of each would likely contain the respective article
IDs.
<!-- This would be output in a loop -->
<a href="article.php?id=<?php echo $id; ?>">
<?php echo htmlspecialchars($title); ?>
</a>
--
Curtis Dyer
<? $x='<? $x=%c%s%c;printf($x,39,$x,39);?>';printf($x,39,$x,39);?>
honestly everything i mentioned about can work, but dang it super
newbish. Everything i said is stuff done in the 90's. What you want is
a frame site with links you click that cause different pages to load
into the iframe. That also is old school and crap.
p.s. I am wasting my life responding to this.