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 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Still, you shouldn't use in it development. put that same statement on your mysql connection eg

    mysql_connect($x, $y, $z) or die(mysql_error());
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #22
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    ***.
    Why isn't this working. ;l

  3. #23
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    post your new code, also why do you have spaces between all ( and ) don't it might be the problem, i doubt it but maybe.

    try this
    Code:
     <?php
    
    include("site_config.php");
    if($_GET["action"] == "update_settings")
    {
        $title = $_POST["title"];
        $status = $_POST["status"];
        $logo = $_POST["main_logo"];
        $offline = $_POST["offline"];
        $left = $_POST["left_logo"];
        mysql_query("UPDATE `settings` SET `title` = '$title', `main_logo` = '$logo', `offline_text` = '$offline', `status` = '$status', `logo_left` = '$left'");
    }
    else 
    {
        $fetch = mysql_fetch_array(mysql_query("SELECT * FROM `settings`"));
        $title = $fetch["title"];
        $status = $fetch["statust"];
        $logo = $fetch["main_logo"];
        $offline = $fetch["offline_text"];
        $left_logo = $fetch["logo_left"];
    ?>
    <form action="?action=update_settings" method="post"> 
    <h2>site title - <span>this is the title your browser displays for your website.</span></h2><br /> 
    <input class="textbox" name="title" type="text" value="$title"/> 
    
    <h2>site status - <span>this declares whther your site is online or offline.</span></h2><br /> 
    <input name="status" type="radio" value="offline">Offline</input>&nbsp;<input name="status" type="radio" value="online">Online</input> 
    
    <h2>offline notice - <span>this is the message users see when the website is set to offline.</span></h2> 
    <textarea class="textarea" name="offline" type="text">$offline</textarea> 
    
    <h2>main logo - <span>this is your sites main logo.</span></h2> 
    <input class="textbox" name="main_logo" type="text" value="$logo"/> 
    
    <h2>semi-main logo - <span>this is your sites semi-main logo. its the bigger logo seen on the left of each page.</span></h2><br /> 
    <input class="textbox" name="left_logo" type="text" value="$left_logo"/> 
    
    <br /><br /> 
    
    <input type="submit" value="edit settings"  class="submit" /> 
    </form>
    <?php } ?>
    Last edited by Hypertext; 09-03-2008 at 01:52 AM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #24
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Here:

    PHP Code:
    <?php

    include( "site_config.php" );
    if( 
    $_GET["action"] == "update_settings" )
    {

        
    $title $_POST["title"];
        
    $status $_POST["status"];
        
    $logo $_POST["logo"];
        
    $offline $_POST["offline"];
        
    $left $_POST["left_logo"];
        
    mysql_query"UPDATE `settings` SET `title` = '$title', `status` = '$status', `main_logo` = '$logo', `offline_text` = '$offline', `logo_left` = '$left_logo' " ) or die(mysql_error());
    }
    else 
    {
        
    $fetch = @mysql_fetch_arraymysql_query"SELECT * FROM `settings`" ) );
        
    $title $fetch["title"];
        
    $status $fetch["status"];
        
    $logo $fetch["main_logo"];
        
    $offline $fetch["offline_text"];
        
    $left $fetch["logo_left"];
    }
    $html = <<<HTML
        <form action="?action=update_settings" method="post"> 
    <h2>site title - <span>this is the title your browser displays for your website.</span></h2><br /> 
    <input class="textbox" name="title" type="text" value="
    $title"/> 

    <h2>site status - <span>this declares whther your site is online or offline.</span></h2><br /> 
    <input name="status" type="radio" value="offline">Offline</input>&nbsp;<input name="status" type="radio" value="online">Online</input> 

    <h2>offline notice - <span>this is the message users see when the website is set to offline.</span></h2> 
    <textarea class="textarea" name="offline" type="text">
    $offline</textarea> 

    <h2>main logo - <span>this is your sites main logo.</span></h2> 
    <input class="textbox" name="logo" type="text" value="
    $logo"/> 

    <h2>semi-main logo - <span>this is your sites semi-main logo. its the bigger logo seen on the left of each page.</span></h2><br /> 
    <input class="textbox" name="left_logo" type="text" value="
    $left_logo"/> 

    <br /><br /> 

    <input type="submit" value="edit settings"  class="submit" /> 
    </form> 
    HTML;

        echo( 
    $html );

    ?>

  5. #25
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    try my above
    How could this hapen to meeeeeeeeeeeeeee?lol.

  6. #26
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    That doesn't fix it.

  7. #27
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    I've determined the problem - it updates when I'm using IE, but it doesn't update in FF.

    That's ****** up.

  8. #28
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Ouch, sorry my friend, IE sucks, it's probably that your doing something wrong and IE is lucky, whereas firefox is sticking to its proper standards and not letting it happen.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  9. #29
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Does anybody know why it's doing that?

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

    Latest Awards:

    Default

    Quote Originally Posted by Navicat View Post
    No, I am pretty sure it doesn't.
    It does, action="" will submit the form to the page you're currently on.


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

Page 3 of 4 FirstFirst 1234 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
  •