prepare("select * from careservice where sn = $id") ; $getd->execute() ; $row = $getd->fetch(pdo::FETCH_ASSOC) ; $title = $row['title'] ; $bdy = $row['body'] ; $image = $row['image'] ; if(isset($_POST['submit'])) { $titles = trim($_POST['title']) ; $body = trim($_POST['body']) ; //$image = trim($_POST['cat']) ; $upd = $DBcon->prepare("update careservice set title =:a, body =:b where sn = $id") ; $upd->bindparam(":a",$titles) ; $upd->bindparam(":b",$body) ; //$upd->bindparam(":c",$cats) ; if($upd->execute()) header("location: careserviceb.php") ; } ?> Crystal Bloom ltd

Edit Records