How to update record by getting id from Url


How to update record by getting. id from Url
Following steps are required
update record by getting. id from Url
1. your url should contain id that you can add by using ? after address like test.php?
2.For getting id you have get id by making variable $id=$_GET[id];
3.In update query you have to write this
$que="UPDATE admin SET image =  '$file_name' WHERE  id ='$id'";
4.when you are getting the id from update url make sure that your form action should echo id in url like this
<form action="test.php?id=<?php echo $id ?>" >
5.its simple and easiest way to get id from url and update id
How to update record by getting id from Url How to update record by getting id from Url Reviewed by Danish Yaqoob on 12:31:00 Rating: 5

No comments

Thanks for your comment.Keep visiting for latest updates from us.
Moreover, Subscribe Now!



FB Instagram Twitter Google+