this is my php code:
<?php
if(isset($_POST['update'])){
$idid=$_POST['i_d'];
$v=$_POST['vvv'];
$course=$_POST['courseu'];
$sts=$_POST['statuesupdate'];
$query ="UPDATE `application_process` a left join `oferte` o on(a.`oferteid`= o.`idoferta`) SET a.`app_status`='$sts' where
a.`app_course`='$course' AND a.`oferteid`='$idid'" ;
$Recordset55 = mysql_query($query);
if($Recordset55){
echo $v;
}
}
?>
this is my modal htmlcode:
<div class="modal fade bs-example-modal-sm" tabindex="-1" id="myModal<?php echo $row_Recordset550['idoferta']; ?>">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span>
</button>
<h4 class="modal-title" id="mySmallModalLabel">Update statues</h4>
</div>
<div class="modal-body">
<input type="text" name="i_d" value="<?php echo $id; ?>" />
<input type="text" name="vvv" value="<?php echo $row_Recordset550['id']; ?>" />
<input type="text" name="courseu" value="<?php echo $row_Recordset550['app_course']; ?>" />
<select name="statuesupdate">
<option value=""> -- Select Status --</option>
<option value="Under Processed">Active(UnderProcessed)</option>
<option value="processed">Closed(Processed)</option>
<option value="pending">Pending</option>
</select>
<input type="submit" name="update" value="update" class="btn btn-sm btn-warning">
</div>
</div>
</div>
</div>
this is my php and html code plese help me query is run successful bt data is not update and when print the id that time garbage value is print so how can my code update
this is my code open a tag
<td><a href="#myModal<?php echo $row_Recordset550['idoferta'];?>" class="btn btn-sm btn-danger" data-toggle="modal" >Edit</a></td>