show title from php include page? -
im having problems finding way of doing this.
i have page on site called profile.php, page has page tittle 'user profile', profile.php page looks this:
<?php $page_title = "user profile"; include('includes/headerframe.php'); ?> <? // profile id url if (isset ($_get['id'])) { $profile_id = $_get['id']; } $user_info_set = get_user_info(); if (!$user = mysql_fetch_array($user_info_set)) { include ('includes/mod_profile/mod_noprofile.php'); } else if (!isset($profile_id)) { include("includes/mod_profile/mod_noprofile.php"); } $profile_info_set = get_profile_info(); while ($profile = mysql_fetch_array($profile_info_set)) if (isset ($profile_id)) if ($user['account_status'] == "active") if ($user['account_type'] == "user") { include("includes/mod_profile/mod_profile.php"); }
what im doing using profile.php includes page if user exists include mod_profile else if user doesnt exist include_modnoprofile.
so in mod_profile.php echo out user's display name though query , im wanting try , put users display name in page title in profile.php instead of 'user',
so question is, there way pull page title mod_profile , set profile.php title or can somehow include page title in part of code users information in profile.php:
$profile_info_set = get_profile_info(); while ($profile = mysql_fetch_array($profile_info_set)) if (isset ($profile_id)) if ($user['account_status'] == "active") if ($user['account_type'] == "user") { include("includes/mod_profile/mod_profile.php");
would appreciate anyone's this, in advance
Comments
Post a Comment