Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default Echos in Echos? [PHP]

    Is there any way to put an echo inside an echo?

    eg
    PHP Code:
    <?Echo("User: $logged[username]
    if(
    $logged[admbadge==1)echo("<img src=\"amd.gif\"></img>");
    ");?>
    Edited by L&#181;ke (Forum Moderator): Thread Moved from Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 06-05-2007 at 09:30 AM.
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    Quote Originally Posted by Cj555 View Post
    Is there any way to put an echo inside an echo?

    eg
    PHP Code:
    <?Echo("User: $logged[username]
    if(
    $logged[admbadge==1)echo("<img src=\"amd.gif\"></img>");
    ");?>
    Why would you want to do that?

    lol

    Try this;

    <?

    echo("User: $logged[username]");

    if($logged[admbadge ==1 )
    {

    echo("<img src=\"amd.gif\"></img>");

    }

    ?>[

  3. #3
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    Quote Originally Posted by Cj555 View Post
    Is there any way to put an echo inside an echo?

    eg
    PHP Code:
    <?Echo("User: $logged[username]
    if(
    $logged[admbadge==1)echo("<img src=\"amd.gif\"></img>");
    ");?>
    Why would you want to do that?

    lol

    Try this;

    <?

    echo("User: $logged[username]");

    if($logged[admbadge ==1 )
    {

    echo("<img src=\"amd.gif\"></img>");

    }

    ?>[

  4. #4
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    PHP Code:
    <?Echo("User: $logged[username]
    if(
    $logged[admbadge==1)echo("<img src="amd.gif\"></img>");
    ");?>

    o.o

    PHP Code:
    echo( "User: {$logged["username"]});
    if( 
    $logged["admbadge"] == )
    {
    echo( 
    "<img src=\"amd.gif\" />" );



    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •