Jump to content

Archived

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

angusyoungfan

How do I...

Recommended Posts

How do I put a Navigation Bar Into PHP, I have little experience with PHP

the HTML for it is

[quote]  <td bgcolor="#FFFFFF" width="170">
                  <center>
                    <b><font color="#000000"> Site Navigation </font></b>
                  </center>                </td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000">
                  <div align="center"><a href="index.html" class=menu><strong>Home</strong></a></div>                </td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" bgcolor="#000000"><div align="center"><strong><a href="news.html">News</a></strong></div></td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000">
                  <div align="center"><a href="about.html" class=menu><b> About</b></a></div>                </td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000">
                  <div align="center"><a href="contact.html" class=menu><b>Contact Us </b></a></div>                </td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000">
                  <div align="center"><a href="bio.html" class=menu><strong>Bio's</strong></a></div>                </td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" bgcolor="#000000"><div align="center"><strong><a href="video.html">Video</a></strong></div></td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" bgcolor="#000000"><div align="center"><strong><a href="link.html">Link To Us</a> </strong></div></td>
              </tr>
              <tr bgcolor="#000000" bordercolor="#999999">
                <td onMouseOver="style.backgroundColor='#333333'" onMouseOut="style.backgroundColor='#000000'" width="170" bgcolor="#000000">
                  <div align="center"></div>                </td>
              </tr>
            </table>[/quote]

Share this post


Link to post
Share on other sites
[code=php:0]
<?php
echo <<<OUT
//put here all that stuff
OUT;
?>
[/code]

make sure there's no white space after <<<OUT and no white space before and after OUT;

;)

Share this post


Link to post
Share on other sites
or you can put it here >> nav.php then [code]include_once('nav.php');[/code]

Share this post


Link to post
Share on other sites

×

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.