Ok I've got a script that works fine and everything on my site just I want to make it more dynamic for other uses other then just pure articles.
my script:
<?php
include_once'config.php';
$sql = "SELECT * FROM $sqlTable WHERE id='".$_GET["id"]."'";
$Result = mysql_query($sql);
while ( $row = mysql_fetch_array($Result, MYSQL_ASSOC) )
{
echo "<b><font size='4'>".$row["article_title"]."</font></b>";
echo "<br>" . nl2br($row["article"]) . "<br>";
}
mysql_close();
?>
I'm curious if there is anyway for nl2br to maybe just work for certain articles or during the submission. I want to do this so I could add something like <?php include_once"this.txt"; ?> into an article and have it display on the page instead of what I put in originally...