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 3 123 LastLast
Results 1 to 10 of 25

Thread: PHP

  1. #1
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default PHP

    Would

    Code:
    if(mysql_query(); == TRUE)
    {
    Would that say if the query made the table or not ?
    Last edited by Mr Macro; 20-04-2007 at 08:09 PM.
    James


    Connected to reality through a proxy server.

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

    Latest Awards:

    Default

    Im no MySQL or PHP Expert but i think it may do it... :S Ask other people too though.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  3. #3
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Dude thats a stupid way to do it and no it wouldn't work im 99.99% sure.

    Just do:

    PHP Code:
    $query mysql_query() or die('Error: 'mysql_error());

    echo(
    "yayz it workd"); 

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

    Latest Awards:

    Default

    See, I told you im no Expert
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  5. #5
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    So, this would work.
    Code:
    <?PHP
    require('includes/config.php');
    
    for($K = 0; $K<sizeof($query); $K++)
    { 
    
    $query = mysql_query($query[$K];) or die('Error: '. mysql_error());
    
    echo("Tables created.Now, delete this file.");
    
    ?>
    (Variables being in the config page)
    James


    Connected to reality through a proxy server.

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

    Latest Awards:

    Default

    Your making some sort of script, with an installer, which means your releasing something or selling it
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  7. #7
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Indeed, i'm making a forum.. which i'm releasing in a few months.

    (for free)
    James


    Connected to reality through a proxy server.

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

    Latest Awards:

    Default

    Nice, Bgi Project to do! It'll be the first opensource forum to be released on this forum lol.

    I'd be happy to be a mirror when you release it and would you let me be the first to congragulate you on completion
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  9. #9
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    PHP Code:
    <?PHP
    require('includes/config.php');

    for(
    $K 0$K<sizeof($query); $K++)


    $query mysql_query($query[$K]) or die('Error: 'mysql_error());

    chmod("install.php"0777);

    unlink("install.php");

    if(
    file_exists("install.php")) {
    echo(
    "Tables created! Now please delete this file.");
    }
    else {
    echo(
    "Tables created! This file has been deleted automatically for security reasons.");
    }

    ?>
    Just a nicer touch D:

  10. #10
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Your going in the credits list tyvm

    Progress:

    Installer made, still to bee tested then BETA'd
    Other pages need to be coded, tested then BETA'd
    Don't get me started on graphics and public BETA
    Last edited by Mr Macro; 20-04-2007 at 08:39 PM.
    James


    Connected to reality through a proxy server.

Page 1 of 3 123 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
  •