supermerc Posted March 24, 2007 Share Posted March 24, 2007 This isnt working and I dont know why <?php if('$profile_info[level]' > 0) { echo "<h1><span style=\"color: red;\">{$profile_info['username']}</span>"; } else { echo "<h1>{$profile_info['username']}"; } ?> The level is correct I tried echoing it out already and it shows the correct number for each but the username shows up as black even if the level is greater than 1 Quote Link to comment Share on other sites More sharing options...
dswain Posted March 24, 2007 Share Posted March 24, 2007 I believe you'll need to take the quotes off of the $profile_info variable within the if condition. I think you meant to put those around the level text. if ($profile_info['level'] > 0) { ... } Quote Link to comment Share on other sites More sharing options...
suzzane2020 Posted March 24, 2007 Share Posted March 24, 2007 yup exactly if($profile_info["level"] > 0) careful about the usage of quotes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.