forked from dranelol/DbLocal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
43 lines (34 loc) · 816 Bytes
/
test.php
File metadata and controls
43 lines (34 loc) · 816 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
include "login.php";
?>
<html>
<head>
<title>
Test
</title>
</head>
<h3>Test</h3>
<br>
<body>
<?php
$query1 = "select extract(day from ShowDate) as Day from MovieShowing where ID=1";
$result1 = mysql_query($query1) or die(mysql_error());
while($row1 = mysql_fetch_array($result1))
{
echo "<br><br>{$row1['Day']}";
}
$query1 = "select extract(month from ShowDate) as Month from MovieShowing where ID=1";
$result1 = mysql_query($query1) or die(mysql_error());
while($row1 = mysql_fetch_array($result1))
{
echo "<br><br>{$row1['Month']}";
}
$query1 = "select extract(year from ShowDate) as Year from MovieShowing where ID=1";
$result1 = mysql_query($query1) or die(mysql_error());
while($row1 = mysql_fetch_array($result1))
{
echo "<br><br>{$row1['Year']}";
}
?>
</body>
</html>