From fcb29d2d2a7af7f1556a011ae39249f1fb7928d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=B5=E9=96=8E=E5=82=91?= Date: Tue, 7 Jun 2016 18:54:32 +0800 Subject: [PATCH] Small fixes here and there -Made the del picture and repiles text change color on table row hover -Added cursor pointer for all buttons -Now supports new line (nl2br) To do list: session life time .....and i think my final project would be done ! --- comment.php | 8 ++++---- home.php | 6 +++--- search.php | 14 +++++++------- style.css | 52 +++++++++++++++++++++++++++++++++------------------- 4 files changed, 47 insertions(+), 33 deletions(-) diff --git a/comment.php b/comment.php index 1288db4..0ab058f 100644 --- a/comment.php +++ b/comment.php @@ -110,7 +110,7 @@ fetch(PDO::FETCH_OBJ)) { - echo "".$row -> msg.""; + echo "".nl2br($row -> msg).""; echo "".$row -> username.""; echo "".$row -> msg_time.""; if($_SESSION['user']==$row->uid) @@ -158,14 +158,14 @@ fetch(PDO::FETCH_OBJ)) { - echo "".$row -> cmt.""; + echo "".nl2br($row -> cmt).""; echo "".$row -> username.""; echo "".$row -> cmt_time.""; if($_SESSION['user']==$row->uid) { ?> -
+
@@ -62,7 +62,7 @@ fetch(PDO::FETCH_OBJ)) { - echo "".$row -> msg.""; + echo "".nl2br($row -> msg).""; echo "".$row -> username.""; echo "".$row -> msg_time.""; if($userRow['user_id']==$row->uid) @@ -73,7 +73,7 @@