My First Web application .. a real shitty one

My First Web application .. a real shitty one
This commit is contained in:
Muhammad Anas Rashid committed 2016-01-28 23:32:09 +05:00
1 parent 610af7dff3
commit 34753111ed
106 files changed
+41611

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<?php
session_start();
if(isset($_SESSION['user']))
{
$temp=$_SESSION['user'];
}
else
{
header("Location: ../views/signinPage.php?message=".urlencode("Login again!"));
}
?>
<?php
require_once("../models/comment.php");
$rs = comment ::getComments($_REQUEST['imgId']);
if($rs == false)
{
echo "No Comments are given!";
}
else
{
foreach($rs as $row)
{
echo '"' .$row['commentstr'].'" <i>by</i> <strong>'. $row['username'].'</strong> <br>' ;
}
}
?>