-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadComments.php
More file actions
38 lines (32 loc) · 940 Bytes
/
Copy pathloadComments.php
File metadata and controls
38 lines (32 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
function getComments($forumID)
{
require("dbconfig/config.php");
//$res2=mysqli_query($con,$sql2);
/*if (isset($_GET["page"]))
{
$page = $_GET["page"];
}
else
{
$page=1;
};
$start_from = ($page-1) * $results_per_page;*/
//$sql2 = "SELECT * FROM paddyreview WHERE paddyID= '$paddyID' LIMIT $start_from, ".$results_per_page;
$sql2 = "SELECT * FROM discussiondetails WHERE forumID= '$forumID'";
$rs_result2 = mysqli_query($con,$sql2);
$count = 0;
while($row2 = mysqli_fetch_row($rs_result2))
{
echo "<div class='row'>
<div class='col-md-12'>";
echo $row2[2];
echo "<span class='pull-right'>$row2[3]<br>$row2[4]</span>";
//echo "<span class='pull-right'>$row2[4]</span>";
echo "<p>".$row2[5]."</p>";
echo "</div>
</div>
<hr>";
}
}
?>