| Current Path : /var/www/html/venkat/project-june2016/ |
| Current File : /var/www/html/venkat/project-june2016/verify.php |
<?php
include("db1.php");
$projectid = htmlspecialchars($_POST['projectid']);
$query ="update projectsubmit set verified= 'yes' WHERE projectid = '$projectid'";
mysql_query($query) or die(mysql_error());
mysql_insert_id();
include("create.php");
/*
$quer1=mysql_query("select * from projectsubmit where rollno='$r'") or die("Invalid Access3 !!!");
if(mysql_fetch_array( $quer1 ))
{
?>
<br> <table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" enctype="multipart/form-data" method="post" action="verify.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Project Details</strong></td>
</tr>
<tr>
<td><b>Project Id</font></td>
<td><b>Roll No.</font></td>
<td><b>Name</font></td>
<td><b>Guide</font></td>
<td><b>Date of Creation/Verification</font></td>
<td><b>Verified</font></td>
</tr>
<?php
$quer1=mysql_query("select projectid,verified from projectsubmit where rollno='$r'") or die("Invalid Access2 !!!");
if($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$verify=$row['verified'];
}
$quer1=mysql_query("select * from projectsubmit where projectid='$id'") or die("Invalid Access3 !!!");
while($row = mysql_fetch_array( $quer1 ))
{
$id=$row['projectid'];
$rollno=$row['rollno'];
$name=$row['name'];
$faculty=$row['guide'];
$date=$row['date'];
$verified=$row['verified'];
$register=$row['register'];
$accepted=$row['accepted'];
?>
<tr>
<td><?php echo($id); ?></font></td>
<td><?php if ($rollno == $register) { echo "<b>"; } echo($rollno); ?></font></td>
<td><?php echo($name); ?></font></td>
<td><?php echo($faculty); ?></font></td>
<td><?php echo($date); ?></font></td>
<td><?php echo($verified); ?></font></td>
</tr>
<?php
}
?>
</form>
</table>
</td>
</tr>
</table>
<?php
}
?>
<?php
if($accepted=="n"){
?>
<center> <br><font color ="blue"> Your Project group is not yet accepted by your guide. Request your guide to accept it. </center></font>
<?php
}
*/