Note that there are some explanatory texts on larger screens.

plurals
  1. POshow title from php include page?
    primarykey
    data
    text
    <p>im having some problems finding a way of doing this.</p> <p>i have a page on my site called profile.php, this page currently has a page tittle 'user profile', my profile.php page looks like this:</p> <pre><code>&lt;?php $page_title = "User Profile"; include('includes/headerframe.php'); ?&gt; &lt;? // GET PROFILE ID FROM 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"); } </code></pre> <p>what im basically doing is using profile.php as an includes page to say if user exists include mod_profile else if the user doesnt exist include_modnoprofile.</p> <p>so in mod_profile.php i echo out the user's display name though a query and im also wanting to try and put the users display name in the page title in profile.php instead of 'user',</p> <p>so my question really is, is there a way to pull a page title from mod_profile and set it as the profile.php title or can i somehow include the page title in this part of the code where i get users information in profile.php:</p> <pre><code>$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"); </code></pre> <p>would appreciate anyone's help with this, thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload