-
Notifications
You must be signed in to change notification settings - Fork 0
/
ans.php
30 lines (22 loc) · 664 Bytes
/
ans.php
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
<?php
session_start();
require("header.php");
require("checkUser.php");
?>
<?php
$sql="SELECT * from answer,question where answer.user_id=$_SESSION[uid] and answer.question_id=question.question_id";
$result=ExecuteQuery($sql);
while($row = mysql_fetch_array($result))
{
echo "<span class='box2'>";
echo "<span class='head'><a href='questionview.php?qid=$row[question_id]'><h4>$row[heading]</h4></a></span>";
echo "</span>";
echo "<br/>";
echo $row['answer_detail'];
echo "<br/>";
echo $row['datetime'];
echo "<br/>";
echo "<div class=line></div>";
}
?>
<?php require("footer.php");?>