You are here: Re: New to PHP help with breadcrumbs « PHP Programming Language « IT news, forums, messages
Re: New to PHP help with breadcrumbs

Posted by tommylux on 02/12/07 00:28

peter, very new to php so forgive me that i dont understand fully of
your last post.

so I want the breadcrumbs with hyperlinks at the top of the page
before i include the content.php. Template page:
=========
Normal HTML template...
<?php print($breadcrumb); ?>
Normal HTML template...
<?php include("/home/embers-o/public_html/progress/breadcrumb/
content.php"); ?>
=========

My content php would look like:

=========
<?php $breadcrumb= "<a href=\"index.php?page=home\">HOME</a> &nbsp »
&nbsp <a href=\"index.php?page=contact\">CONTACT US</a>"; ?>
Normal HTML Content...
=========

It works when i put the: $breadcrumb after the content but not before.

Not sure how to implement the echo in your suggestion. maybe in the
template page:

please help

Tom

On Feb 12, 12:05 am, "petersprc" <peters...@gmail.com> wrote:
> One way would be to paste the contents of content.php into the calling
> script:
>
> <? echo $bread; ?>
>
> [...content...]
>
> Are you getting an error currently?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация