Jump to content

[SOLVED] Viewing News From MySQL - Need Help


Spartan 117

Recommended Posts

Hello, I think it is from these forums I got help for a links page. I used that code for a new site, but for news. I need some help because I am now lost.

I have a page for making, editing, and deleting news. But I have no page for viewing it.

To do that I thought that I would just copy the editing page since it put the news into a textbox. But this is where I am lost. In the editing page the script first show all of the links to the news title, then clicking that will reveal the form for editing, which has 2 textboxes, one for the short version of the news, and one for the long. Then you would edit.

I went ahead and copied and made a few changes. I erased the form and just put it into a table. Here is the code for the viewing page, and then after is the code to display the summary and the link to view the full story:

[url=http://www.phpfreaks.com/forums/index.php?action=dlattach;topic=119792.0;attach=786]Links[/url]
[url=http://www.phpfreaks.com/forums/index.php?action=dlattach;topic=119792.0;attach=785]Viewing[/url]

If someone could help me how to make the page view what I want. I haven't even tested it yet because I know that it will not work. You start with the links page then it will bring you to the full story, once I get the full story page to work it will be very easy to link to it.

Thanks



[attachment deleted by admin]
Link to comment
https://forums.phpfreaks.com/topic/31737-solved-viewing-news-from-mysql-need-help/
Share on other sites

what do you want the view to display. do you want it to display the short story first, then a link to the full story which when you click displays the full story?
that links page just displays the news title etc in a table...
I would like for that link page (which is just a script that is inside my actual site) to just display the title (which will be the date the news was made) and the short story in it. Underneath it has a link (Read More). That whole thing is finished and working, except where to link to.

I want the other page to be ALL of the news together, but only for the one that the person clicked on from the other page to be displayed.

IE:

---------------------------------------------

[b]Link Page:[/b]

Under Construction
(Read More)

Website Created
(Read More)

[i]The user clicks: Under Construction's Read More Link[/i]

[b]View Page:[/b]

(table --V)
Date:  |12/23/06
Story: |The website is currently undergoing minor construction.
::::::: |It hopefully will not last too long. Please check back later.
(table --^)

---------------------------------------------

That is the best I can do to explain  :-[

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.