get_ProfileInfo('nickname', $temp_ID); ?> </p> <p><b>Gender: </b> <?php get_ProfileInfo('gender', $temp_ID); ?> </p> <p><b>Created: </b> <?php niceDate(return_ProfileInfo('profilecreation', $temp_ID)); ?> </p> <p><b>Date of Birth: </b> <?php niceDate(return_ProfileInfo('birthday', $temp_ID)); ?> </p> <P><b>Interests: </b> <?php get_ProfileInfo('interests', $temp_ID); ?> </P> <P><b>Blog Description: </b> <?php get_ProfileInfo('blogdesc', $temp_ID); ?> </P> <P><b>Blog Privacy: </b> <?php get_ProfileInfo('privacy', $temp_ID);
} } } } // $query = "SELECT * from tags"; // $result = mysql_query($query); // while ($row = mysql_fetch_array($result)) // { // if ($row['Post_ID'] == $postID) // { // echo $row['Tag_label'] . " "; // } // } } if (empty($_POST["blogdes_update"])) { $newblogdesc = return_ProfileInfo('blogdesc'); } else { $newblogdesc = test_input($_POST["blogdes_update"]); } if ($_POST["privacy_update"] == "Select") { $newprivacy = return_ProfileInfo('privacy'); } else { $newprivacy = test_input($_POST["privacy_update"]); } //$sessionid = $_SESSION['SESS_LOGIN_ID']; //sql update profile $sql_addpost = "UPDATE profile SET nickname = '{$newnickname}', photo = '{$newpicture}', interests = '{$newinterests}', privacy = '{$newprivacy}', blogdesc = '{$newblogdesc}' WHERE profileID = '{$sessionid}' "; echo $sql_addpost; check_sql($sql_addpost, $conn); header("Location:index.php"); }