Results 1 to 8 of 8

Thread: Question...

  1. #1
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Question...

    Okay here's my question.

    this is my website http://nhff.cutpage.com/graves

    I am setting up a CMS for updated news articles etc. and I want the news.txt file to show up in the the center cell of the table, how do I get that to occur with php. I have done it before, i remember I was just a simple line of php. Also, I want to set up the links in my navagation bar for php, so I can just make the other pages plain, and I click the links and they show up in the same cell, with the same CSS. I dunno if that makes since, but i hope someone see's what I'm talking about.

    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Code:
    <div align="center">
    <?php
    file_get_contents("file.txt");
    ?>
    </div>
    I'm not really sure what you mean when you say you want the the links in your navigation bar "for" php. Try to make your second question a bit more clear.
    - Mike

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You missed an echo
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mburt
    Code:
    <div align="center">
    <?php
    file_get_contents("file.txt");
    ?>
    </div>
    I'm not really sure what you mean when you say you want the the links in your navigation bar "for" php. Try to make your second question a bit more clear.
    Hmm... I guess what I meant was, how to do I make the links show up in the center table, when I click them on my navagation bar, how do I add the code

    is it like

    Code:
    <a href="main.php?pagename.htm>Link</a>
    I can't remember if that's right? If so will that direct the center cell to that page, or will i need an Iframe, and have its target direct it to the iframe, so it doesn't ahve to reload the main sections?

    thanks; I hope that helps with teh question.
    Last edited by fatedglory15; 10-23-2006 at 04:50 PM.

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    NOTE: "question" is a stupid title. Yes, we know you have a question. Put the question in the thread title so we'll be sure to look and help
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't know what type of question, my question is persay. I didn't want to post a wrong topic and have people come in here to try and help and realize its not what I said, cause I don't know what what I'm doing is called? its php related, that's all I know, sorry for the vague thread name.

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I understand. It's just really good to know what a topic about.
    Like.... CMS question would be better, just so we have some idea.

    I'm not yelling at you.... just help us help you

    (for example, if we wanted to find this thread later if we come up with an answer, we can't, 'cause of the generic name)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mburt
    Code:
    <div align="center">
    <?php
    file_get_contents("file.txt");
    ?>
    </div>
    I'm not really sure what you mean when you say you want the the links in your navigation bar "for" php. Try to make your second question a bit more clear.
    So if I wanted that to be in an iframe in the center cell, I would add the iframe, put the code into the iframe, and then when I want the contents from each of my links to show up in the iframe do I like them as
    Code:
    <a href="link.php" target="iframe" >Link</a>
    ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •