Need Sql Query

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

9 replies · 640 views · started 18 years ago · 1 min read

5 participants
learner Lead · 587 posts #1

ok i need to know how delete structures inside table like ibwf_users i want to only clear users, in ibwf_theme i want to only delete theme how and what query to put in sql to do that? 🍬

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

amylee Principal · 1,092 posts #2

what you want to delete the users table in ibwf_users and theme name in ibwf_theme? that makes no sense delete users is allready in place

learner Lead · 587 posts #3

i mean the users or say like i want delete all topics in ibwf_topics i want to make the sql clean something like this

--
-- Table structure for table `ibwf_users`
--

CREATE TABLE `ibwf_users` (
  `id` int(100) NOT NULL auto_increment,
  `name` varchar(30) NOT NULL default '',
  `pass` varchar(60) NOT NULL default '',
  `birthday` varchar(50) NOT NULL default '',
  `sex` char(1) NOT NULL default '',
  `location` varchar(100) NOT NULL default '',
  `perm` char(1) NOT NULL default '0',
  `posts` int(100) NOT NULL default '0',
  `plusses` int(100) NOT NULL default '700',
  `signature` varchar(100) NOT NULL default '',
  `avatar` varchar(100) NOT NULL default '',
  `email` varchar(50) NOT NULL default '',
  `browserm` varchar(50) NOT NULL default '',
  `ipadd` varchar(30) NOT NULL default '',
  `lastact` int(100) NOT NULL default '0',
  `regdate` int(100) NOT NULL default '0',
  `chmsgs` int(100) NOT NULL default '0',
  `chmood` int(100) NOT NULL default '0',
  `shield` char(1) NOT NULL default '0',
  `gplus` int(100) NOT NULL default '700',
  `budmsg` varchar(100) NOT NULL default '',
  `lastpnreas` varchar(100) NOT NULL default '',
  `lastplreas` varchar(100) NOT NULL default '',
  `shouts` int(100) NOT NULL default '0',
  `pollid` int(100) NOT NULL default '0',
  `rbcid` varchar(255) NOT NULL default '',
  `hvia` char(1) NOT NULL default '1',
  `lastvst` int(100) NOT NULL default '0',
  `battlep` int(100) NOT NULL default '700',
  `popmsg` char(1) NOT NULL default '1',
  `automsgs` char(1) NOT NULL default '1',
  `validated` char(1) NOT NULL default '0',
  `theme` varchar(100) NOT NULL default 'white_medium.css',
  `hidden` char(1) NOT NULL default '0',
  `quiz_score` varchar(20) NOT NULL default '0',
  `quiz_easy` char(3) NOT NULL default 'no',
  `quiz_medium` char(3) NOT NULL default 'no',
  `quiz_hard` char(3) NOT NULL default 'no',
  `total_score` varchar(10) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

--
-- Dumping data for table `ibwf_users`
--

see? no users its clean now i want to make it new again again put site up and start all over again?

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

laro696 Developer · 205 posts #4

Just empty the tables...

laro696 Developer · 205 posts #6

but how with command? with hand too much time :(

In phpmyadmin, just select the little blocks next to all the tables that you want to empty, and click empty 5 minutes max

Anshul Senior · 296 posts #7

@mysql_query("truncate table ibwf_users;");

amylee Principal · 1,092 posts #8

truncate is in uppercase

Guest #9

🍬 Easy Coding....... Juz Read the clear data codings in ur ownerproc.php

Learner then u can get an idea

SpiderWap Lead · 622 posts #10
mysql_query("DELETE post FROM users");
mysql_query("DELETE post FROM users WHERE user='".$username."'");
mysql_query("DELETE post, chatp, forump, shoutp, galleryp FROM users WHERE user='".$username."'");

Wasn't really sure what you wanted, this is just a few examples, but editing with right verables and tables it would work with lava, (I asume your using lave)

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