prepare("select * from parents where regno = :rg") ; $getdetails->bindparam(":rg",$sn) ; $getdetails->execute() ; $rows = $getdetails->fetch(pdo::FETCH_ASSOC) ; $father = $rows['father'] ; $falive = $rows['falive'] ; $fphone = $rows['fphone'] ; $mother = $rows['mother'] ; $malive = $rows['malive'] ; $mphone = $rows['mphone'] ; $gname = $rows['gname'] ; $gphone = $rows['gphone'] ; $reg = $rows['regno'] ; ?>