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 3 FirstFirst 123
Results 21 to 25 of 25

Thread: PHP

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

    Latest Awards:

    Default

    Quote Originally Posted by Mr Macro View Post
    Would

    Code:
    if(mysql_query(); == TRUE)
    {
    Would that say if the query made the table or not ?
    Quote Originally Posted by Invent View Post
    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"); 
    Slow way to do it.

    Quote Originally Posted by Mr Macro View Post
    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)
    Too much crap

    Here's how the Dan would do it:
    PHP Code:
    if(@mysql_query("CREATE TABLE BLAH BLAH")) // use @ to suppress warnings.
    {
    yay kill me now it worked.



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

  2. #22
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    I'm making installer, so i need the crap.I need to loop through the queries to create all like 12 of them. Thanks anyway.
    James


    Connected to reality through a proxy server.

  3. #23
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    TBH Mr. Macro, if you can't figure that out and you put the ; after $query, I don't see how you can make a forum?

  4. #24
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Im learning...
    James


    Connected to reality through a proxy server.

  5. #25
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jaffa Cakes! View Post
    See, I told you im no Expert
    Can I ask why you replied to this thread then?
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

Page 3 of 3 FirstFirst 123

Posting Permissions

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