| Current Path : /var/www/html/venkat/projectaug2017/ |
| Current File : /var/www/html/venkat/projectaug2017/futilitysubmit.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>
<?php
mysql_connect("localhost","root","") or die(mysql_error());
mysql_selectdb("upload") or die(mysql_error());
$utility = addslashes($_POST['utility']);
//$query ="insert into projectsubmit(rollno,discipline,name,projectid,guide,verified,date,time,zone,projecttype,ip) VALUES ('$c[$i]', '$c2[$i]', '$c1[$i]', '$id','$faculty', '$question','$my_t','$dated','$dated1','$projecttype','$ip')";
$query="insert into utility(uname, fname) VALUES ('$utility','$r')";
mysql_query($query) or die(mysql_error());
mysql_insert_id();
echo ("<center> <font color='blue'> It is uploaded.</font></center>");
?>
</center>
<a href="http://172.25.32.38/hodmain.php">Click Here for Home<a/>