Something Big? Mabey
7 posts
Page 1 of 1
So I am using the micro login system on my website and would like to know if I could do something like this:
Thanks in advance! lmao;
Alex
Code: Select all
So what i would want it to do would to get the username and if its some1s username for ex alex it would post certain text in html or php.If <?php echo $_SESSION['userName']; ?> = alex
then <p>your logos</p>
Thanks in advance! lmao;
Alex
Free Facebook Page Likes - http://fbliker.tk/?ref=gillis
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
What mandai is saying, If you just try and put html code there it is going to error, Use this code:
<?php
if $_SESSION['userName'] == "alex"
{
echo '<p>your logos</p>'
}
?>
<?php
if $_SESSION['userName'] == "alex"
{
echo '<p>your logos</p>'
}
?>
Found my answere on phpforum.com
Geekman
Post subject: Re: User name regignision.
PostPosted: Sat Jul 24, 2010 11:26 am
New php-forum User
New php-forum User
Joined: Tue Jul 20, 2010 10:36 am
Posts: 4
Location: Behind You, With a SWORD!
How about this:
Code:Code: Select all<? if($_SESSION['userName'] == 'alex'){ ?> HTML FOR USER GOES HERE. <? } ?>
I used something like this on my site. See if it works for you.
Free Facebook Page Likes - http://fbliker.tk/?ref=gillis
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023