-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnullfinder.php
More file actions
43 lines (31 loc) · 862 Bytes
/
nullfinder.php
File metadata and controls
43 lines (31 loc) · 862 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
39
40
41
42
43
<?php
// Connect to the MySQL database
$strAbsPath = "/home/paulthetutor/paulthetutors.com";
include($strAbsPath . "/includes/pttec_includes.phtml");
MySQL_PaulTheTutor_Connect();
reqToVars();
put_ptts_header("", $strAbsPath, "", "");
?>
<?php
// Query the Database
$QStr = "SELECT id, test_id, section_number, first_page, last_page FROM TP_SAT_Sections where first_page = 0 or first_page IS NULL or last_page = 0 or last_page IS NULL order by test_id, section_number";
$RS = runquery($QStr);
?>
<table>
<tbody>
<tr>
<?php
// Print the Query
while ($arid = mysql_fetch_array($RS)){
$id = $arid[0];
$test_id = $arid[1];
$section_number = $arid[2];
$first_page = $arid[3];
$last_page = $arid[4];
echo "<tr><td>$test_id</td><td><textarea>$last_page</textarea></td></tr>";
}
?>
</tr>
</tbody>
</table>
<?php put_ptts_footer(""); ?>