View difference between Paste ID: c0P7gmJa and CuRWJWR5
SHOW: | | - or go back to the newest paste.
1-
			echo "<hr><div class='homeBlog'>";
1+
echo "<hr><div class='homeBlog'>";
2-
			echo "<a href='javascript:toggleDivFast(\"msg-".$a."\")'><h3 style='margin-left:30px;'>".$row['title']."</a></h3>";
2+
echo "<a href='javascript:toggleDivFast(\"msg-".$a."\")'><h3 style='margin-left:30px;'>".$row['title']."</a></h3>";
3-
			echo "<h5 style='margin-left:30px; margin-bottom:20px; margin-top:-15px;'>from ".$row['sender']."</h5>";
3+
echo "<h5 style='margin-left:30px; margin-bottom:20px; margin-top:-15px;'>from ".$row['sender']."</h5>";
4-
			echo "<div id='msg-".$a."' ".$b." ><p>".stripslashes($row['message'])."</p>";
4+
echo "<div id='msg-".$a."' ".$b." ><p>".stripslashes($row['message'])."</p>";
5-
			
5+
6-
			echo "<a href='javascript:toggleDivFast(\"homeComments-".$a."\")'><h4 style='margin-left:60px;'>Comments</h4></a>";
6+
echo "<a href='javascript:toggleDivFast(\"homeComments-".$a."\")'><h4 style='margin-left:60px;'>Comments</h4></a>";
7-
			echo '<div id="homeComments-'.$a.'" '.$b.'">';
7+
echo '<div id="homeComments-'.$a.'" '.$b.'">';
8-
			echo displayComments($row['id']);
8+
echo displayComments($row['id']);
9-
			
9+
10-
			$id_cmt = $row['id'];
10+
$id_cmt = $row['id'];
11-
			$usr = $_SESSION['user'];
11+
$usr = $_SESSION['user'];
12-
			
12+
13-
			echo '<div style="margin:40px;">';
13+
echo '<div style="margin:40px;">';
14-
			
14+
15-
			echo '<form action="post_comment.php" method="POST" name="cmtForm-'.$a.'">';
15+
echo '<form action="post_comment.php" method="POST" name="cmtForm-'.$a.'">';
16-
			echo '<textarea style="width:100%; height:100px;" name="msg" placeholder="Comment here">This is a test</textarea>';
16+
echo '<textarea style="width:100%; height:100px;" name="msg" placeholder="Comment here">This is a test</textarea>';
17-
			echo '<input type="hidden" value="'.$id_cmt.'" name="id_cmt" />';
17+
echo '<input type="hidden" value="'.$id_cmt.'" name="id_cmt" />';
18-
			echo '<input type="hidden" value="'.$usr.'" name="usr" />';
18+
echo '<input type="hidden" value="'.$usr.'" name="usr" />';
19-
			echo '<input type="submit" value="Add comment" style="margin:0; width:100%; height:25px; font-size:12px; color:black; text-shadow:none; font-family:\'roboto\', sans-serif;" />';
19+
echo '<input type="submit" value="Add comment" style="margin:0; width:100%; height:25px; font-size:12px; color:black; text-shadow:none; font-family:\'roboto\', sans-serif;" />';
20-
			echo '</div></div></div></div>';
20+
echo '</div></div></div></div>';