.> $profile_id = (!empty($_GET['id'])) ? $_GET['id'] : false; if($profile_id){ $connection = mysqli_connect($dbHost, $dbUser, $dbPass, $dbName); $profile_id = mysqli_real_escape_string($connection, $profile_id); $data = mysqli_query($connection, "SELECT * FROM users WHERE id='$profile_id'"); if($data){ $row = mysqli_fetch_array($data, MYSQLI_NUM); $profile_First_Name = $row[3]; $profile_Last_Name = $row[4]; $profile_birthdate = $row[5]; $profile_country = $row[6]; $profile_state = $row[7]; $profile_town = $row[8]; $profile_signup = $row[9]; $profile_bio = $row[10]; $profile_image_ext = $row[11]; $profile_isOnline = $row[13]; }else{ echo "The data didn't go through"; } if(mysqli_num_rows($data) > 0){ } else{ header("Location: index.php"); } }else{ header("Location: dashboard.php"); } ?>
'.$profile_bio.'
'; ?>'; if($friend_info_online == 1){ echo 'Online |
'.$friend_info_name.' |