Mysql Installer Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mysql Installer Script

    Hi peeps.

    This is a very simple script that i coded, and i find it very usefull when doing scripts on my local pc.

    What it does is you can easly run sql queries or upload sql files into a database.

    I don't recomment having this file on a web surver though, it could be very dodgy, or you could perhaps upload, do your stuff and delete it again, but i wont take any responsouble for any damage done.

    lol i cant post a demo otherwise my site would be down in a few minutes, but here, hope someone else can find it usefull to. lol
    Attached Files

    Click here!!!

    #2
    remember ?> and <? more then ?> this is your 2 times lol again lol[/b]
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      lol i noticed after uploading, but it works lol

      Click here!!!

      Comment


        #4
        Ok, in an hour or 2 im posting another script im coding now

        Click here!!!

        Comment


          #5
          ok cool

          also you wont to check a error


          </textarea> has no ending
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            ok cool

            also you wont to check a error
            </textarea> has no ending[/b]
            u mean it has not start dude

            Comment


              #7
              it dont work on my server i cant add nothing
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                Sub, you have to change something in your tables, ill give you an example.
                I just use it at localhost on local pc....

                Click here!!!

                Comment


                  #9
                  it works on a server has mysql upost lol i have it trun off bro lol
                  Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                  Visit: WapMasterz Coming Back Soon!
                  _______
                  SCRIPTS FOR SALE BY SUBZERO
                  Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                  FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment


                    #10
                    This one's fixed by me,
                    PHP Code:
                    <?
                    //put ur db details here
                    $dbuser = "";
                    $dbpass = "";
                    $dbname = "";
                    $dbhost = "";
                    mysql_connect("$dbhost","$dbuser","$dbpass") or die(mysql_error()); 
                    mysql_select_db("$dbname") or die(mysql_error());
                    $action=$_GET['action'];
                    echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
                    ?>
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
                    <?
                    echo "<head>";
                    echo "<title>SQL Query</title>";
                    echo '<style type="text/css">
                    body {
                      font-family: arial, sans-serif;
                      font-size: 12px;
                      color: #FFFFFF;
                      background-color: #000000;
                      margin-left: 0px;
                      margin-right: 0px;
                      margin-top: 0px;
                     }

                    a:link, a:visited { 
                    text-decoration: underline; 
                    color:#FF0000
                    }

                    a:active { 
                    text-decoration: underline; 
                    color:#FF0000
                    }

                    a:hover { 
                    color:#FF0000;
                    }
                    </style>';
                    echo "</head>";
                    echo "<body>";
                    if($action=="install")
                    {
                    echo "<center>";
                    $sql = stripslashes($_POST["sql"]);
                    echo "Query Successfully Executed!!!<br/>";
                    echo $sql."<br/>";
                    $res = mysql_query($sql);
                    echo mysql_error()."<br/><br/>";
                    echo "<a href=\"mysql.php\">Back</a><br/>";
                    echo "</center>";
                    echo "</body>";
                    echo "</html>";
                    exit();
                    }
                    else
                    {
                    echo "<form action=\"mysql.php?action=install\" method=\"post\">";
                    echo "SQL Query:<br/>";
                    echo "<textarea name=\"sql\" cols=\"60\" rows=\"5\"></textarea><br/>";
                    echo "<input type=\"submit\" value=\"Query\"/>";
                    echo "</form>";
                    echo "</center>";
                    echo "</body>";
                    echo "</html>";
                    exit();
                    }
                    Last edited by metulj; 03.05.09, 22:35. Reason: use [ code ] ... [ / code ] or [ php ] ... [ / php ] tag for posting codes
                    My Blog: http://jhommark.blogspot.com
                    My Facebook: http://www.facebook.com/jhommark
                    My Official Site: http://www.undergroundweb.tk
                    My Community Site: http://undergroundwap.xtreemhost.com

                    Comment

                    Working...
                    X