-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport.php
More file actions
58 lines (56 loc) · 1.48 KB
/
export.php
File metadata and controls
58 lines (56 loc) · 1.48 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
55
56
57
58
<?php
$conn = mysqli_connect("localhost","root","root","axbanki");
header('Content-type: application/vnd-ms-excel');
$filename = "user_dala.xls";
header("Content-Disposition:attachment;filename=\"$filename\"");
?>
<table border="1">
<thead>
<tr>
<th>a1</th>
<th>a2</th>
<th>a3</th>
<th>a4</th>
<th>a5</th>
<th>a6</th>
<th>a7</th>
<th>a8</th>
<th>a9</th>
<th>a10</th>
<th>a11</th>
<th>a12</th>
<th>a13</th>
<th>a14</th>
<th>a15</th>
</tr>
</thead>
<tbody>
<?php
$sn = 1;
$sql = "SELECT * FROM kurs1_1";
$row = mysqli_query($conn, $sql);
while ($user_data=mysqli_fetch_assoc($row))
{
?>
<tr>
<td><?php echo $sn; ?></td>
<td><?php echo $user_data['guruh']; ?></td>
<td><?php echo $user_data['fio']; ?></td>
<td><?php echo $user_data['fakultet']; ?></td>
<td><?php echo $user_data['yonalishi']; ?></td>
<td><?php echo $user_data['talim_turi']; ?></td>
<td><?php echo $user_data['kursi']; ?></td>
<td><?php echo $user_data['viloyati']; ?></td>
<td><?php echo $user_data['tumani']; ?></td>
<td><?php echo $user_data['D_Y_J']; ?></td>
<td><?php echo $user_data['Tel_raqami']; ?></td>
<td><?php echo $user_data['PasSerRaq']; ?></td>
<td><?php echo $user_data['OTga_kirgan_yil']; ?></td>
<td><?php echo $user_data['kurator']; ?></td>
<td><?php echo $user_data['Tug_yil_oy_kun']; ?></td>
</tr>
<?php
$sn++;
} ?>
</tbody>
</table>