This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Webmaster forum > January 2007 > What's Wrong with the following code.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
What's Wrong with the following code.
|
|
| Chaddy2222 2007-01-27, 11:09 pm |
| Hi all.
I am trying to get the following PHP include to work, but I keep
getting a sintax error, according to the server, it's due to an
unexpected "<" on line 23.
The code snipet is below.
<div id="navbar">
<?php include ("navigation.php");
</div>
and the url is http://freewebdesign.cjb.cc/test/index.php
--
Regards Chad. http://freewebdesign.cjb.cc
| |
| cristina 2007-01-27, 11:09 pm |
| Chaddy2222 wrote:
> Hi all.
> I am trying to get the following PHP include to work, but I keep
> getting a sintax error, according to the server, it's due to an
> unexpected "<" on line 23.
> The code snipet is below.
> <div id="navbar">
> <?php include ("navigation.php");
>
> </div>
> and the url is http://freewebdesign.cjb.cc/test/index.php
> --
> Regards Chad. http://freewebdesign.cjb.cc
Could be that ?> is missing at the end of the PHP bit, from
<?php include ("navigation.php"); ?>
| |
| Jerrymander 2007-01-27, 11:09 pm |
| Chaddy2222 wrote:
> Hi all.
> I am trying to get the following PHP include to work, but I keep
> getting a sintax error, according to the server, it's due to an
> unexpected "<" on line 23.
> The code snipet is below.
> <div id="navbar">
> <?php include ("navigation.php");
>
> </div>
> and the url is http://freewebdesign.cjb.cc/test/index.php
Um, missing the "?>" on the 'include' line? Thus, the "</div>" was
attempted to be parsed as PHP code, which clearly it is not.
| |
| Chaddy2222 2007-01-27, 11:09 pm |
|
Jerrymander wrote:
> Chaddy2222 wrote:
>
> Um, missing the "?>" on the 'include' line? Thus, the "</div>" was
> attempted to be parsed as PHP code, which clearly it is not.
Yes, that appears to be the case in both instences. Thanks guys.
--
Regards Chad. http://freewebdesign.cjb.cc
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|