-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalljava.php
More file actions
101 lines (89 loc) · 2.38 KB
/
alljava.php
File metadata and controls
101 lines (89 loc) · 2.38 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Post query</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css">
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.pic {
border: 5px solid #fff;
float: left;
height: 300px;
width: 300px;
margin: 5px;
overflow: hidden;
-webkit-box-shadow: 10px 10px 10px #f778a1;
box-shadow: 10px 10px 10px #f778a1;
}
.pic1 {
border: 5px solid #fff;
float: left;
height: 300px;
width: 300px;
margin: 5px;
overflow: hidden;
}
.morph {
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
}
.morph:hover{
border:70px solid #f778a1;
border-radius:50%;
}
h2{
color: purple;
}
</style>
</head>
<body>
<form action="JavaProg.php" method="get">
<div class="container">
<section class="register">
<a href="mainpage1.php">HOME</a>
<br/><br>
<h2>Question Bank</h2>
<table border="1" cellspacing="10" cellpadding="10">
<th>Q ID</th>
<th>Date</th>
<th>Question</th>
<th>Tag</th>
<th>Author</th>
<?php
$t=time();
mysql_connect("localhost", "","") or die("No connection");
mysql_select_db("test") or die ("DATABASE not availabel");
$sql="select * from questions where tag='java' order by qid desc";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
echo "<tr>";
echo"<td>".$row['qid']."</td><td>".$row['datee']."</td><td><a href='myown.php'>".$row['question']."</a></td><td>".$row['tag']."</td><td>".$row['username']."</td>";
echo "</tr>";
}
?>
</table>
Enter QID <input type="text" name="qid"/>
<button class="buttonscrolly">View</button>
</section>
</div>
</section>
</div>
</form>
</body>
</html>