rendered paste body<?phpif ($_POST['B1']){ $title=$_POST['title']; $content=$_POST['content']; $author=$_POST['author']; include ('news/inc/mysql.php'); include ('news/inc/databasename.php'); $db = mysql_select_db($database,$connection) or die ("Couldn't select database."); $query = "INSERT INTO news (news, title, author) VALUES ($content,$title,$author)"; $result = mysql_query($query) or die ("Couldn't Execute Query.");}?><?php include('admin/news_header.php'); ?><div align="center"> <p align="center"><b>Add News</b></p> <form method="POST" action=""> <div align="center"> <table border="0" width="420" height="52"> <tr> <td width="207" height="24"> <p align="right">News Article Title:</p> </td> <td width="199" height="24"> <input type="text" name="title" size="20" /> </td> </tr> <tr> <td width="207" height="7"> <p align="right">Author/Username: </p> </td> <td width="199" height="7"> <input type="text" name="author" size="20" /> </td> </tr> <tr> <td width="207" height="14" valign="top"> <p align="right">News Post:</p> </td> <td width="199" height="14"> <textarea rows="6" name="content" cols="25"></textarea> </td> </tr> </table> </div> <div align="center"> <input type="submit" value="Submit" name="B1" /> <input type="reset" value="Reset" name="B2" /> </div> </form></div><?php include('admin/news_footer.php'); ?>