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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default Image - PHP - Newbie to PHP ='[

    Again im not posting this in the coding section as only about 30 people look at.
    ive got this PHP Code:
    PHP Code:
    <?php 
    // starts php 
    include "usersystem/config.php"
    // includes the config file 
    if (!$logged['username']) 
    // checks if user is logged in 
    die("You must be a member to view this page. To be able to use this uploader please contact"); 
    // stops user from viewing page 
    ?>
    Where it says i want to put and image to stop spam bots reading the message. Ive got this Image:


    Could someone help a PHP Newbie

    Thanks, will +REP,
    :.:Numark:.:
    Last edited by Recursion; 21-08-2006 at 05:47 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    <?php
    // starts php
    include "usersystem/config.php";
    // includes the config file
    if (!$logged['username'])
    // checks if user is logged in
    die("You must be a member to view this page. To be able to use this uploader please contact ");
    // stops user from viewing page
    ?>

  3. #3
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    worked perfectly thanks +REP
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  4. #4
    Join Date
    May 2006
    Location
    Wakefield, West Yorkshire
    Posts
    1,118
    Tokens
    0

    Latest Awards:

    Default

    With PHP, you can use HTML but instead of using " use '
    Hope it helps

  5. #5

    Default

    I gave eorr a rep aswell

  6. #6
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default

    Quote Originally Posted by dp3 View Post
    With PHP, you can use HTML but instead of using " use '
    You shouldnt use ' really, because it can cause errors.

    you should use " but you have to put a \ in front of it, in the php, eg:

    $string = "Here is a link: <a href=\"page.php\">Link</a>";

  7. #7
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    This is HTML not PHP :s

  8. #8
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Eric30 View Post
    You shouldnt use ' really, because it can cause errors.

    you should use " but you have to put a \ in front of it, in the php, eg:

    $string = "Here is a link: <a href=\"page.php\">Link</a>";
    Well technically both are right, as are a number of other methods of achieving the same thing, since there's nothing in the mark up itself requiring a different quote mark, such as javascript often can, there was abosulty no point in useing shashed quotion marks, plus usealy you would only slash the rairest mark type, not the most common, for the simple fact it would be more work "/

  9. #9
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default

    Yea, both work, but you dont normally write html with '

    I remember having problems with JS and maybe CSS when using '
    That was a long time ago lol, but anyway, i always use \" as it outputs the html the way most people write html

  10. #10
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Eric30 View Post
    Yea, both work, but you dont normally write html with '

    I remember having problems with JS and maybe CSS when using '
    That was a long time ago lol, but anyway, i always use \" as it outputs the html the way most people write html
    w3 allows for both types of quoteation marks, even in the strict dtd's, if you want to use " in the code you open the php output aria with ' insted o.0

Page 1 of 2 12 LastLast

Posting Permissions

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