Sql help: not able to change

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

    Sql help: not able to change

    PHP Code:
    mysql_query($query);
    $query="CREATE TABLE `tusers` (`id` int(10) NOT NULL auto_increment,`name` varchar(30) NOT NULL default '',`pass` varchar(60) NOT NULL default '',`email` varchar(200) NOT NULL default '',`admin` int(5) NOT NULL default '0',`banned` int(5) NOT NULL default '0',PRIMARY KEY  (`id`),UNIQUE KEY `name` (`name`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;";
    $r=mysql_query($query);
    if (!
    $r) {echo("Error!! CREATE TABLE \"tusers\"<br/>\r\n");}
    $query="INSERT INTO `tusers` VALUES (1, 'metal', '86094b61cb9f63b77f982ceae03e95f0', 'metal', 1, 0);";
    mysql_query($query); 
    i can't change tusers metal name and metal password. And don't know what's this ( 86094b61cb9f63b77f982ceae03e95f0 ) please help me.

    #2
    Originally posted by WapAdda View Post
    PHP Code:
    mysql_query($query);
    $query="CREATE TABLE `tusers` (`id` int(10) NOT NULL auto_increment,`name` varchar(30) NOT NULL default '',`pass` varchar(60) NOT NULL default '',`email` varchar(200) NOT NULL default '',`admin` int(5) NOT NULL default '0',`banned` int(5) NOT NULL default '0',PRIMARY KEY  (`id`),UNIQUE KEY `name` (`name`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;";
    $r=mysql_query($query);
    if (!
    $r) {echo("Error!! CREATE TABLE \"tusers\"<br/>\r\n");}
    $query="INSERT INTO `tusers` VALUES (1, 'metal', '86094b61cb9f63b77f982ceae03e95f0', 'metal', 1, 0);";
    mysql_query($query); 
    i can't change tusers metal name and metal password. And don't know what's this ( 86094b61cb9f63b77f982ceae03e95f0 ) please help me.
    just change the name metal to your name?
    86094b61cb9f63b77f982ceae03e95f0 is md5 password "metal"

    Comment


      #3
      Originally posted by something else View Post
      just change the name metal to your name?
      86094b61cb9f63b77f982ceae03e95f0 is md5 password "metal"
      ok, i change the name metal to my name. But how change password? What's the md5? Please tell me.

      Comment


        #4
        PHP Code:
        mysql_query($query); 
        $query="CREATE TABLE `tusers` (`id` int(10) NOT NULL auto_increment,`name` varchar(30) NOT NULL default '',`pass` varchar(60) NOT NULL default '',`email` varchar(200) NOT NULL default '',`admin` int(5) NOT NULL default '0',`banned` int(5) NOT NULL default '0',PRIMARY KEY  (`id`),UNIQUE KEY `name` (`name`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;"
        $r=mysql_query($query); 
        if (!
        $r) {echo("Error!! CREATE TABLE \"tusers\"<br/>\r\n");} 
        $query="INSERT INTO `tusers` VALUES (1, 'metal', '".md5('your pass')."', 'metal', 1, 0);"
        mysql_query($query); 

        Comment


          #5
          Thank you sir. Now im done. But you tell me what's md5?

          Comment


            #6
            md5 is a 1 way encryption method that turns a string or integer/float into a 32 digit string
            MD5 - Wikipedia, the free encyclopedia
            Last edited by something else; 10.04.12, 12:36.

            Comment


              #7
              how to delete tables and rows? i don't know how to say that i used zedge script. i asked my friend to install it for me but later i deleted the whole public_html folder. i also deleted database user and database password. i can still see files related in phpmyadmin ! how can i reset or delete previously uploaded sql file ??????????

              Comment


                #8
                login to your database .... select the table(s) you want to delete and then select DROP table

                Comment

                Working...
                X