-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlen.php
More file actions
54 lines (43 loc) · 1.33 KB
/
len.php
File metadata and controls
54 lines (43 loc) · 1.33 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
<?php
session_start();
?>
<div class="panel-body">
<center><ul class="list-group">
<!--<li class="list-group-item"><span class="badge" id"credit"></span> New</li>
<li class="list-group-item"><span class="badge" id"credit"></span> New</li>
-->
<table class="table table-striped table-bordered"><thead>
<tr><th>#</th><th>Name</th><th>Amount</th></tr>
</thead>
<tbody>
<?php
$currentid=$_SESSION["username"];
$conn=mysql_connect("localhost","root","password");
$db=mysql_select_db("lenden",$conn);
$url="";
?>
<!-- SQL query goes here -->
<?php
$strSQL = "SELECT name,lenn from transection join user on transection.id2=user.uid
where id1 = '".$currentid."' AND lenn>0";
$rs = mysql_query($strSQL);
$counter=1;
while($row = mysql_fetch_array($rs)) {
$update = $row['name'];
$upcnt= $row['lenn'];
?>
<tr id="w1-filters" class="filters">
<td> <?php echo $counter++; ?></td>
<td><?php echo $update ?></td>
<td><?php echo $upcnt ?></td>
</tr>
<?php }
?>
<!-- save input here -->
</tbody>
</table>
</ul></center>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrapcdn.min.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>