-
Notifications
You must be signed in to change notification settings - Fork 0
/
uhome.php
42 lines (30 loc) · 1010 Bytes
/
uhome.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
31
32
33
34
35
36
37
38
39
40
41
42
<?php
session_start();
require("header.php");
require("checkUser.php");
?>
<script type="text/javascript">
document.getElementById("auhome").className="active";
</script>
<h4><a href="que.php">My Question</a>
<a href="ans.php">My Answered </a></h4>
<?php
$sql="select * from question,user where question.user_id=user.user_id ORDER BY datetime desc limit 0,5";
$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]' >$row[heading]</a></span>";
echo "<table>";
echo "<tr><td valign='top' width='100px'>
<img src='$row[uimg]' alt='' class='uimg'/>
<br/>
$row[fullname]
<td valign='top'>
$row[question_detail]<br/><br/>
$row[datetime]<br/><br/>
</td></tr>";
echo "</table></span><div class='h10'></div>";
}
?>
<?php require("footer.php");?>