Skip to content

Commit b994738

Browse files
authored
Removed default variable & Roll No.
1 parent 398f5ad commit b994738

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ShowRecord.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
//varaible setting
44

5-
$rollNo = $_POST['roll_no'] ?? '01'; // fetch roll no value or with a default variable
5+
$idNo = $_POST['id_no']; // fetch id value
66

77

88
// Setting Variables
99

1010
$dir = 'data'; // default folder name, files (.csv) store inside it
11-
$filename = $dir . '/' . $rollNo . '.csv'; // file naming acc. to Roll no.
11+
$filename = $dir . '/' . $idNo . '.csv'; // file naming acc. to ID no.
1212
$records = []; // empty array to store all records
1313

1414

@@ -82,7 +82,7 @@
8282
<table>
8383

8484
<thead>
85-
<th>Roll</th>
85+
<th>ID</th>
8686
<th>Name</th>
8787
<th>Grade</th>
8888
<th>Marks</th>

0 commit comments

Comments
 (0)