-
An Online Web Application For News Around The School
-
-
-
?><div style="float:left; text-align:left;">
<form method='post'>
<h2>Comments:</h2>
<textarea name='comment' id='comment' style='border: groove 1px #093; resize: none;'></textarea><br />
<input type='hidden' name='articleid' id='articleid' value='<? echo $_GET["id"]; ?
>' />
<p></p>
<input type='submit' value='Comment' style="background-color:#093; color:#FFF; font-family:Mistral; font-size:16px; border:groove 2px #093; border-radius:0% 15% 0% 15%;" />
</form>
<?php
$con = mysql_connect("localhost","root",""); mysql_select_db("news", $con);
$id=$_GET['id'];
$sel="SELECT * FROM `dailycomment` where news =".$_GET['id'];
$result = mysql_query($sel);
while($row = mysql_fetch_assoc($result))
{
echo "<h3>".$row['name'].' on <font style="font-size:10px; font- face:Monotype Corsiva; font-style:italic;">'.$row['time']."</font></h3><font size='2'>".$row['comment']."</font>";
}
mysql_close($con);
?></div>
</div>
<p> </p>
<a href="#top">Top</a></div>
</div>
</div><!-- end of left column -->
<div id="footer">
<div class="footer_leftcol">
Copyright © <?php echo date('Y')?><a href="aboutme.php"><strong>PATRICK EMMANUEL</strong></a>
<p>Thanks for using the online news portal. You can always come back to get your latest news here!!!.</p>
</div>
<div class="footer_rightcol">
<div class="footer_subcol">
<a href="index.php">Mainpage</a><br />
</div><div class="footer_subcol">
<a href="contact.php">Contact</a><br />
<a href="admin/index.php">Settings</a>
<br /></div>
<div class="footer_subcol">
<a href="privacy.php">Privacy</a><br /><a href="rules.php">Rules</a><br />
</div>
</div>
</div>
</div>
<div align=center><marquee direction="left" behavior="alternate" scrollamount="1" scrolldelay="1">This portal was developed by Patrick Emmanuel © Copyright
<?php echo date('Y')?></marquee></div></body>
</html>
4) Source code for administrator’s index page
<?php session_start(); ob_start();
if(!isset($_SESSION['login']))
{
header("location:../login.php");
}
?>
<html>
<head>
<link rel="icon" href="img/dept.png" type="image/x-icon">
<title>Administrator</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="content.css" />
<script type="text/javascript" src="content.js">
-
-
-
ABSRACT - [ Total Page(s): 1 ]Abstract coming soon for this material ... Continue reading---
-
ABSRACT - [ Total Page(s): 1 ]Abstract coming soon for this material ... Continue reading---