How To Send id from your DB to different application page from URL

1 First of all fetch data from data base to your software application with the help of select query.



<?php
 $sql = "select * from school_classmaster";
$row=mysql_query($sql);
while($data=mysql_fetch_array($row)) 
  $id= $data['id'];
?>


2 In fetch data table provide edit option to edit data 


<form action="edit.php?id=<?php echo $id; ?>" method="post" enctype="multipart/form-data">
 <input type="image"  src="images/icon/icon.png"   width="50"   id="editm" name="editm" value="<?php echo $data['id'];?>" placeholder="Movie Name" required="">
<input type="hidden"   id="idedit" name="idedit" value="<?php echo $data['id'];?>" placeholder="Movie Name" required="">

    </form>

Comments

Popular posts from this blog

How to filter data from database according to client name & date wise in PHP

Captcha Code In PHP