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!


Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default [tut] online mysql command line [/tut]

    Ok today we're going to create a quick and simple mysql command line via php. first we need to make our form:


    Ok heres the lodown we choose an action of the page itself, and the method as post, we then have an input for the command line itself, and a submit button named commandline. now we need to input that data:

    Here what we're doing is first checking if the form is posted, then we're taking the data and stripping any slashes, then we're checking if it was able to, else we die and echo the error, if succesful we echo Query executed successfully!, now let's try putting all this together:



    There you go!

    Hope you understand this, have fun!
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #2
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Note to anyone who plans to use that anywhere...

    SECURE SECURE SECURE

    Note that if anyone ever got a hold of that and you had directly connected it to your database, well, to put it lightly, you're screwed. Just a thought

Posting Permissions

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