Php profile

im creating a web site like linkedin…if u login then go to profile page…it hav two tab 1. edit profile 2.view profile

in this edit profile display both like
name:nandhagopal Edit
job:add a current job

if u add a current job details then its shows
name:nandhagopal edit
job:software edit

in the view profile
its display only user presented details…
like name:nandhagopal
if he not add location its not display in the view profile…

any of them help this…

You probably are using the same code in both pages. You need to set a trigger somewhere not to display if viewing a profile or to show edit only if you are viewing your own.