Add User To Groups

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

7 replies · 700 views · started 18 years ago · 1 min read

4 participants
opticalpigion Lead · 593 posts #1

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

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='".$who."'");
  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&sid=$sid\">Users Info</a>
";
  echo "
[b]9 [/b]<a accesskey=\"9\" href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a>
";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p></body>";
}

so now facing " Error adding user " plz help to solve this..

subzero Super moderator Fellow · 3,954 posts #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... _______…

sweetangel Lead · 885 posts #3
-- Table structure for table `ibwf_groups`
-- 

CREATE TABLE `ibwf_groups` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(50) NOT NULL default '',
  `autoass` char(1) NOT NULL default '1',
  `mage` int(10) NOT NULL default '0',
  `maxage` int(10) NOT NULL default '0',
  `userst` char(1) NOT NULL default '0',
  `posts` int(100) NOT NULL default '0',
  `plusses` int(100) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM  AUTO_INCREMENT=1;

-- --------------------------------------------------------

try this sql

if like my post click:

External image (may be gone)

opticalpigion Lead · 593 posts #4

thanks for replying subzero nd sweetangel but theres allready this sql

-- 
-- Table structure for table `ibwf_groups`
-- 

CREATE TABLE `ibwf_groups` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(50) NOT NULL default '',
  `autoass` char(1) NOT NULL default '1',
  `mage` int(10) NOT NULL default '0',
  `maxage` int(10) NOT NULL default '0',
  `userst` char(1) NOT NULL default '0',
  `posts` int(100) NOT NULL default '0',
  `plusses` int(100) NOT NULL default '0',
  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..External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #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... _______…

crazybrumi Super moderator Principal · 1,064 posts #6
-- Table structure for table `ibwf_groups`
-- 

CREATE TABLE `ibwf_groups` (
  `id` int(10) NOT NULL auto_increment,
  `name` varchar(50) NOT NULL default '',
  `autoass` char(1) NOT NULL default '1',
  `mage` int(10) NOT NULL default '0',
  `maxage` int(10) NOT NULL default '0',
  `userst` char(1) NOT NULL default '0',
  `posts` int(100) NOT NULL default '0',
  `plusses` int(100) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM  AUTO_INCREMENT=1;

-- --------------------------------------------------------

try this sql

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.

http://flagcounter.com/more/W80q

subzero Super moderator Fellow · 3,954 posts #7

External image (may be gone) 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... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close