-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload_data.php
42 lines (31 loc) · 1.21 KB
/
load_data.php
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
39
40
41
42
<?php include('includes/header.php'); ?>
<?php include('advertisement.php'); ?>
<?php
$sql = "SELECT * FROM tbl_company LIMIT 2";
$result = mysqli_query($con, $sql);
if(mysqli_num_rows($result) > 0)
{
while($row = mysqli_fetch_array($result))
{
$SubCategoryId = $row["company_name"];
$CategoryId = $row["company_address"];
$output .= '
<tr>
<td>
<i class="fa fa-picture-o" aria-hidden="true" style="color: #15ab19;"></i>
</td>
<td><a href="post_list.php?catid='.$row["company_address"].'">'.$row["company_address"].'</a></td>
<td><a href="post_list.php?catid='.$row["company_name"].'">'.$row["company_name"].'</a></td>
</tr>
';
}
$output .= '
<tr id="remove_row">
<td> </td>
<td><button type="button" name="btn_more" data-vid1="'. $CategoryId .'" data-vid2="'. $SubCategoryId .'" id="btn_more" class="btn btn-success form-control">more</button></td>
<td> </td>
</tr>
';
echo $output;
}
?>