Hi All
Im working on my site (again), i almost got it finished than changed my mind on the structure of the PHP, i was echoing each line of html from within the php file, didn't like it, was unmanageable!!
so i opted to use raw html and insert <?php ?> where i want some scripting done
is this a recommend way, if not, what the h3ll is ?
PHP Code:<!-- start page -->
<div id='page'>
<!-- start content -->
<div id='content'>
<?php
$Query=mysql_query("SELECT * FROM Plugins WHERE ID=".$ID);
if ($Query<>false)
{
while($Row = mysql_fetch_array($Query))
{
?>
<div class='post'>
<h2 class='title'><?php echo($Row["PluginName"]); ?></h2>
<div class='entry'>
<p><?php echo("<b>Version:</b> ".$Row["Version"]."<br/><b>ReleaseDate:</b> ".$Row["ReleaseDate"]."<br/><b>LastUpdate:</b> ".$Row["LastUpdate"]."<br/><b>Author:</b> ".$Row["Author"]."<br/><b>Licence:</b> ".$Row["Licence"]."<br/>");?></p>
<p><?php echo($Row["LongDesc"]);?></p>
<p><?php echo("<b>Requirements:</b> ".$Row["Requirements"]."<br/><b>Installation:</b> ".$Row["Installation"]);?></p>
</div>
<div class='meta'>
<p class='byline'><?php echo("Views: (".$Row["Views"].") Downloads: (".$Row["Downloads"].")"); ?></p>
<p class='links'><a href='news.php?ID=<?php echo($Row["ID"]);?>' class='more'>Read full article</a> <b>|</b> <a href='#' class='download'>Download</a></p>
</div>
</div>
<?php
}
}
?>
</div>
<!-- end content -->
<?php
include("sidebar.php");
?>
<div style='clear: both;'> </div>
</div>
<!-- end page -->

