| Current Path : /var/www/html/venkat/project1/ |
| Current File : /var/www/html/venkat/project1/futility.php |
<?php
session_start();
if(!isset($_SESSION['myusername'])){
header("location:login.html");
}
$r=$_SESSION['myusername'];
$s=$_SESSION['no'];
echo "<div align='right'>";
echo "Welcome ".$r." !! ";
?>
<div align="right">
<form method="post" action="logout.php">
<input type="submit" value="Logout" align="right">
</form>
</div>
<html>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="store.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Choose Your Option</strong></td>
</tr>
<?php
?>
<tr>
<td width="100"> Projects Opted</td>
<td width="16">:</td>
<td width="100">
<a href="fopted.php">Projects</a><br>
</tr>
<tr>
<td width="100"> Comment the Project</td>
<td width="16">:</td>
<td width="100">
<a href="fcomment.php">Comments</a><br>
</tr>
<tr>
<td width="100"> View Project Details</td>
<td width="16">:</td>
<td width="100">
<a href="fview.php">View</a><br>
</tr>
<tr>
<td width="100"> Upload Utility Project (if any)</td>
<td width="16">:</td>
<td width="100">
<a href="futility.php">Utility</a><br>
</tr>
</form>
</table>
</td>
</tr>
</table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="futilitysubmit.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Available Utility Projects</strong></td>
</tr>
<tr>
<td width="300">
<?php
mysql_connect("localhost","root","") or die(mysql_error());
mysql_selectdb("upload") or die(mysql_error());
$quer2=mysql_query("select * from utility") or die("Invalid Access !!!");
$i=0;
while($row = mysql_fetch_array($quer2))
{
$uname=$row['uname'];
$occupy=$row['occupy'];
$i++;
echo $i.". ".$uname."<br>";
}
?>
</td>
</form>
</table>
</td>
</tr>
</table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="futilitysubmit.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Submit the new Utility Project Title</strong></td>
</tr>
<tr>
<td width="60">Project Name</td>
<td width="6">:</td>
<td width="100">
<input type="text" name="utility">
</td>
</tr>
<tr>
<td width="25"><input type="submit" value="Submit " /></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<a href="http://172.25.32.38/facultymain.php">Click Here for Home<a/>