Jump to content

donrobertito

New Members
  • Posts

    4
  • Joined

  • Last visited

donrobertito's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. And it could be also the problem, that the article tags are way after my header.php definied... Or I got it wrong?
  2. Dear Muddy_Funster, I come back to this project, I had so much to do, that I had no time for this, but this is really important to me to learn php! So than you for your help. There is something not clear with your suggestion: - I think, there is one "{" is missing, but I found his place... - As you can see, the "tag" is used in the "Tags:" line on the bottom of the page. Is this a good idea to use it in your example? - You defined multiple times the $tags variable. Is this rigth? Your example is not working for me... Thanks: Robert
  3. Thanks! But can yopu be a bit more precise? With a tiny example? My code looks like this at the tags: <p>Tags <?php for ($i = 0; $i < $count; $i++) { echo '<a href="index.php?p=tag&tag='.$article[$i]->tag_word.'">'.$article[$i]->tag_word.'</a>'; if ($i != $count-1) echo ", "; }?></p><br /> How can i pass these to header?
  4. Hello there! I'm such a beginner in php coding, i don't know the trick yet. My question is: I have a site, the main files are header.php; index.php; footer.php. I include header and footer in index php The index.php contains the articles, with tags. I want to pass the tags form articles to header.php as meta information. I get the tags from a database query. How can i do this method? Thanks: Robert
×
×
  • 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.