diff --git a/config.php b/config.php
index a574354..0c8b897 100644
--- a/config.php
+++ b/config.php
@@ -1,3 +1,3 @@
diff --git a/feedadd.php b/feedadd.php
index 8144c39..a3af29f 100644
--- a/feedadd.php
+++ b/feedadd.php
@@ -2,20 +2,20 @@
session_start();
include("config.php");
if(isset($_SESSION["username"])){
-echo "hiii";
+ echo "hiii";
//echo NOW();
-function test($data) {
+ function test($data) {
$data = trim($data);
- $data = stripslashes($data);
- $data = htmlspecialchars($data);
- return $data;
-}
+ $data = stripslashes($data);
+ $data = htmlspecialchars($data);
+ return $data;
+ }
-$t = date('Y-d-m H:i:s',time());
-echo "$t";
+ $t = date('Y-d-m H:i:s',time());
+ echo "$t";
//$query = "INSERT INTO time VALUES('$t')";
-$user = test ($_SESSION["username"]);
-$po= test ($_POST["feed"]);
+ $user = test ($_SESSION["username"]);
+ $po= test ($_POST["feed"]);
/*function test($data) {
$data = trim($data);
$data = stripslashes($data);
@@ -35,8 +35,8 @@ function test($data) {
while ($row=$res -> fetch_assoc()){
echo "feed: ".$row['comment']."
". $row['time']." ". $row['username']."
";
}}
-header("location:./feedpage.php");}
-else
-echo "logged out";
-?>
+ header("location:./feedpage.php");}
+ else
+ echo "logged out";
+ ?>
diff --git a/feedpage.php b/feedpage.php
index 6d0d0f6..6540bcb 100644
--- a/feedpage.php
+++ b/feedpage.php
@@ -3,42 +3,37 @@
?>
-
-
+
+
-
-
-| add comment |
-
-
-|
- |
-
-
-
-
+
+
+ | add comment |
+
+
+ |
+ |
+
+
+
+
query($query2);
- if($res->num_rows>0){
- while ($row=$res -> fetch_assoc()){
- echo "feed: ".$row['comment']."
". $row['time']." ". $row['username']."
";
- }}
+$query2 ="select * from shivansh_feed";
+$res=$con->query($query2);
+if($res->num_rows>0){
+ while ($row=$res -> fetch_assoc()){
+ echo "feed: ".$row['comment']."
". $row['time']." ". $row['username']."
";
+ }
+}
?>
-
-
-
-
-
-
-
+