Tell me how to make sure that only the data entered by the user is displayed in the profile? If the user entered email , the email:xxx@m.com shown, if not, the whole field was hidden and another one was going on. Please throw an example if you can, or a tutorial so that at least an example of the work is understood. Thank you in advance.

    1 answer 1

     // $result - массив, полученный от mysql_fetch_array(); if($result['email'] !== ""){ // если email записан // выводим его echo "email - ".$result['email']; } 
    • 2
      Correct $ result ['email']! = "" - Deonis
    • one
      Yes. Thank you :) Corrected. - atnartur