I just started working with php and I can't understand why my code isn't working, I want my nav to display across but it displays up and down, and my content(or whatever you wanna call it) only displays when I'm not include(ing) nav.php.
index.php
[php]
$row[title]
By:
$row[author]
$row[date] @ $row[time]
$row[content]
";} ?> [/php]
nav.php
[php]
<?php $sql = mysql_query( "SELECT * FROM nav ORDER BY linkn"); while ($row = mysql_fetch_assoc($sql)) { $link = $row['link']; echo "$row[link]
";} ?>[/php]