Add User To Groups

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

    Add User To Groups

    im facing this error while trying to add user to any group

    " I don't know how did you get into here, but there's nothing to show "
    i add this code into owercp. and ownerproc
    Code:
    else if($action=="addtog")
    {
      $who = $_GET["who"];
      echo "<head>";
      echo "<title>Owner Tools</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo "</head>";
      echo "<body>";
      echo "<p align=\"center\">";
      echo "
    ";
      $res = mysql_query("INSERT INTO ibwf_groups SET uid=&#39;".$who."&#39;");
      if($res)
      {
      echo "<img src=\"../images/ok.gif\" alt=\"O\"/>user  added successfully";
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error adding user ";
      }
      echo "
    
    [b]8 [/b]<a accesskey=\"8\" href=\"admincp.php?action=chuinfo&amp;sid=$sid\">Users Info</a>
    ";
      echo "
    [b]9 [/b]<a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a>
    ";
      echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p></body>";
    }
    so now facing
    " Error adding user "
    plz help to solve this..
    sigpic

    #2
    has that ibwf_groups have a sql ?
    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
      Code:
      -- Table structure for table `ibwf_groups`
      -- 
      
      CREATE TABLE `ibwf_groups` (
        `id` int(10) NOT NULL auto_increment,
        `name` varchar(50) NOT NULL default &#39;&#39;,
        `autoass` char(1) NOT NULL default &#39;1&#39;,
        `mage` int(10) NOT NULL default &#39;0&#39;,
        `maxage` int(10) NOT NULL default &#39;0&#39;,
        `userst` char(1) NOT NULL default &#39;0&#39;,
        `posts` int(100) NOT NULL default &#39;0&#39;,
        `plusses` int(100) NOT NULL default &#39;0&#39;,
        PRIMARY KEY  (`id`),
        UNIQUE KEY `name` (`name`)
      ) ENGINE=MyISAM  AUTO_INCREMENT=1;
      
      -- --------------------------------------------------------
      try this sql
      if like my post click:

      http://coding-talk.com/images/totall...ost_thanks.gif

      Comment


        #4
        thanks for replying subzero nd sweetangel
        but theres allready this sql
        Code:
        -- 
        -- Table structure for table `ibwf_groups`
        -- 
        
        CREATE TABLE `ibwf_groups` (
          `id` int(10) NOT NULL auto_increment,
          `name` varchar(50) NOT NULL default &#39;&#39;,
          `autoass` char(1) NOT NULL default &#39;1&#39;,
          `mage` int(10) NOT NULL default &#39;0&#39;,
          `maxage` int(10) NOT NULL default &#39;0&#39;,
          `userst` char(1) NOT NULL default &#39;0&#39;,
          `posts` int(100) NOT NULL default &#39;0&#39;,
          `plusses` int(100) NOT NULL default &#39;0&#39;,
          PRIMARY KEY  (`id`),
          UNIQUE KEY `name` (`name`)
        ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9;
        
        -- 
        -- Dumping data for table `ibwf_groups`
        --
        i can make groups but not able to add members in it..
        sigpic

        Comment


          #5
          oh ok i will look at the script for you or some one here will have a fix up for you
          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
            Code:
            -- Table structure for table `ibwf_groups`
            -- 
            
            CREATE TABLE `ibwf_groups` (
              `id` int(10) NOT NULL auto_increment,
              `name` varchar(50) NOT NULL default &#39;&#39;,
              `autoass` char(1) NOT NULL default &#39;1&#39;,
              `mage` int(10) NOT NULL default &#39;0&#39;,
              `maxage` int(10) NOT NULL default &#39;0&#39;,
              `userst` char(1) NOT NULL default &#39;0&#39;,
              `posts` int(100) NOT NULL default &#39;0&#39;,
              `plusses` int(100) NOT NULL default &#39;0&#39;,
              PRIMARY KEY  (`id`),
              UNIQUE KEY `name` (`name`)
            ) ENGINE=MyISAM  AUTO_INCREMENT=1;
            
            -- --------------------------------------------------------
            try this sql[/b]
            omg you finaly starting to help omg sum1 get er a lolly pmpl
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              and the first time i didnt get mad in a post with that 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


                #8
                still same problem..
                i think problem is in ownercp.php !!
                sigpic

                Comment

                Working...
                X