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 14

Thread: PHP Help please

  1. #1
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default PHP Help please

    Hey Guys i am trying to learn php right and i need help i want to make a simple project to view a Database by Puting in the database details in a file and then you can veiw it on another page and i have this atm on the viewing page:
    PHP Code:
    $include 'the database file name'
    so what do i put next please help

    thanks DJ-Snoop
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  2. #2

    Default

    Argh can't help you , I have some problem when I'm making login system , he ask the same but I think you need to log on onto cpanel then go to database and the name you see.. :p most of the time it's:

    YOURUSERNAME_ANDSOMTHINGELSE
    www.habbo-works.tk
    Normal for you , Strange for us!

  3. #3
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    i know that but i am making a little project to view a Database and see what
    something you installed has put in the database and if i manage to make this project i will make it biger and show it on this forum
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

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

    Latest Awards:

    Default

    well id gues u want to make a mysql DB connection, just use this

    PHP Code:
    $dbh mysql_connect ("localhost","DATA BASE USER""DATA BASE PASS") or die ('DATABASE ERROR due to: ' mysql_error());
    mysql_select_db ("DATABASE WANTING TO USE"); 

  5. #5

    Default

    Yea that's code to connect indeed but snoop will you tell us abit more cause we don't really know what you really want
    www.habbo-works.tk
    Normal for you , Strange for us!

  6. #6
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Well what i want is a script to view the Database i have the connections page but i need the script for the main page to view the database (YAY my 100th Post)
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

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

    Latest Awards:

    Default

    View the database? u want to run a quiry on the db and exstract some of the info? or loop out a whole table? or what, im kinda confused "/ if u just wana view the database just use phpmyadmin

  8. #8
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    its a project i want to do i want to view every bit of file inside the database by using PHP and i am stuck and i need help how to make it view a Database
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

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

    Latest Awards:

    Default

    just open every table, the loop of all the results for each would be easyest way, seems pretty pointless thogh

  10. #10
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    you've confused me all i need is a simplae PHP code
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

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
  •