am having issue fetching the data from the data base.
This should really be in the PHP forum, but first,
@$result = mysql_query($sql, $conn);
Remove the @. In PHP, this suppresses any errors returned by the function mysql_query (I think, it's usually done here: @mysql_query)
next, temporarily add this:
$sql = "select * from ef_tb where ";
$sql .= "email='" . $_SESSION['e'] . "' and phone='" .$_SESSION['p'] . "'";
echo $sql;
exit; Then copy and paste it into mysql command line or phpMyAdmin and see if it runs and returns results.
Once that's working, you'll have to read in the values like you're doing but put them into a form:
<p><label for="yourname">Name</label> <input type="text"
name="yourname" id="yourname" value="<?php echo htmlspecialchars(ucfirst($row["name"])); ?>"></p>
Then that form should submit to a script in which you use update to update the record by ID.