Jump to content


Photo

How do I...


  • Please log in to reply
2 replies to this topic

#1 angusyoungfan

angusyoungfan
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 13 September 2006 - 01:02 AM

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

the HTML for it is

  <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>



#2 yaba

yaba
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 13 September 2006 - 04:03 AM

<?php
echo <<<OUT
//put here all that stuff
OUT;
?>

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

;)

#3 vbnullchar

vbnullchar
  • Members
  • PipPipPip
  • Advanced Member
  • 428 posts
  • LocationPasig City, Philippines

Posted 13 September 2006 - 05:17 AM

or you can put it here >> nav.php then
include_once('nav.php');

Registered Linux User #399942
Ubuntu User #14134
--
my blog




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users