Hey everybody,
I have a problem where my footer file - "footer.php" is becoming a link.
It is becoming the link from the above statement.
It is probably a simple problem but I can't fix it.
Code...
<?php echo '<p> <a class="link8" href="viewprojectsArticle2.php?title='.$row['related2'].'">';?>
<?php echo $row['related2'];?>
<?php
// Require the database class
require_once('includes/DbConnector.php');
// Create a new DbConnector object
$connector = new DbConnector();
// IMPORTANT!!! Validate the ID number. See next article
// Execute the query to retrieve the selected article
$result = $connector->query('SELECT related3 FROM team_director WHERE ID = '.$HTTP_GET_VARS['id']);
// Get an array containing the resulting record
$row = $connector->fetchArray($result);
?>
<?php echo '<p> <a class="link8" href="viewprojectsArticle2.php?title='.$row['related3'].'">';?>
<?php echo $row['related3'];?>
<?php
require('includes/footer.php');
?>
And my footer file is...
</div>
</div>
</div>
</div>
<div class="footer">
<div id="footer">
<h1>RESOLVE GROUP<i> A Client's Own Consulting Team</i></h1>
</div>
</div>
<div id="bottom">
<p align="center">© 2008 Resolve Group</p>
</div>
</body>
</html>