Results 1 to 9 of 9
  1. #1

    php code help...

    Ok, is there any php code I could use that would do this?

    It will take text that is on 1 php page, and will duplicate the same text on each page the php code is on?

  2. #2
    Join Date
    Jan 2003
    Perth, WA, Australia
    Care to elaborate on what you actually need? :/ :: coming soon

  3. #3
    It will be for like news. It will be on multiple pages... but I am tired of editing all the pages. I don't know php very well, and I don't know any kinda MySQL for this. I have no money to pay anyone. So I was hoping that would do it.

  4. #4
    Join Date
    Jan 2003
    Perth, WA, Australia
    Well.. If you mean putting the same text on multiple pages?

    You can have a file like functions.php with functions in it like..

    function hello() {
    <html code>
    hello friend
    <more html code>

    Then on other pages you can do



    And just edit the function in functions.php if you need to change the output.

    I hope that helps you. :: coming soon

  5. #5
    Thanks I will try that when i get done writing my Terms of Services.

  6. #6
    Well I have tried that... but I am having problems with the functions.php I entered that but nothing shows up where it should be... it doesn't show anything up at all.

  7. #7
    Eh, nevermind I got it to work in my own special way.

  8. #8
    it should be the include...
    on every page, and as for newstext.php
    echo "Your content.";

  9. #9
    or something like that.
    I don't think newstext.php even has to have php material.

    take a look:
    that is using the "include" fonction.

Posting Permissions

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