Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Mysql altering tabels
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

Unknown User
2008-03-25 12:47:36
Hi,

in my database i would like to set all torrents to anon(you know the column) to yes.

I tought

ALTER TABLE `torrents` SET `anon` = `yes`

But i always get an error could someone give my the right command?
Unknown User
2008-03-25 13:57:25
UPDATE torrents SET anon='yes'
Unknown User
2008-03-25 14:21:22
"TorrentialStorm, post: 40506":
UPDATE torrents SET anon='yes'
Jesus o.O where'd you learn mysql...

UPDATE `torrents` SET `anon`='yes'

Fields and tables should ALWAYS be wrapped in ` and values ALWAYS in '

Thats the first thing you should always have in mind.

If you don't use ` for fields and tables you will get errors if you take names like "time" or other keywords from mysql.

The mistake that the threadstartet dis, was taking `yes`. That meant for mysql to take the value from yes which did not exist.  :D

Just for that.
Unknown User
2008-03-25 19:03:53
I know you should use the ` but it seems thad TS his code worked perfectly to!

So thanx TS!
Unknown User
2008-03-25 19:20:46
"fyver, post: 40527":
I know you should use the ` but it seems thad TS his code worked perfectly to!So thanx TS!
Yes, because those tables are no keywords  :D

You CAN do it without ` but it can lead to errors and security issues :D
Unknown User
2008-03-26 02:35:07
"EFchen, post: 40507":
Jesus o.O where'd you learn mysql...

honestly? i didn't, same goes for PHP
Unknown User
2008-03-26 12:05:24
"TorrentialStorm, post: 40551":
honestly? i didn't, same goes for PHP
:D  But don't forget the `

btw. Can you tell me, where and how I get that VBTT?

No one answers me, and you are an admin on that site, at least you should know.

I am in need of a VB-Modification with a tracker and thats the only one I know and I have questions and money to spend but no one, that even cares =/
Unknown User
2008-03-26 14:25:26
It's on sourceforge [url="http://sourceforge.net/project/showfiles.php?group_id=98584&package_id=180952"]http://sourceforge.net/project/showfiles.p...ckage_id=180952[/url]
Unknown User
2008-03-26 14:26:16
in the VBTT forum under "Releases"...

[url="http://www.torrenttrader.org/index.php?showforum=32"]http://www.torrenttrader.org/index.php?showforum=32[/url] or VBTT v2.x is on sourceforge
Unknown User
2008-03-26 15:28:40
"TorrentialStorm, post: 40577":
in the VBTT forum under "Releases"...
[url="http://www.torrenttrader.org/index.php?showforum=32"]http://www.torrenttrader.org/index.php?showforum=32[/url] or VBTT v2.x is on sourceforge
Yes, but as far as I read, these are only "light"?

I read in a post from toolman, that a full version costs $100 ?
Unknown User
2008-03-26 16:02:46
toolmanwill is the only one that deals with VBTT and he's not here much (read his recent posts for the reason).
Unknown User
2008-03-26 16:57:42
"TorrentialStorm, post: 40579":
toolmanwill is the only one that deals with VBTT and he's not here much (read his recent posts for the reason).
Yeah read that, but thought that someone else has the chance to do something etc.

So I have to sit back and wait =/

thx.
Unknown User
2008-04-25 17:54:57
I just came up with another issue.

I would like all the torrents of a certain owner(owner 1 a example) to move to another owner(like owner 2).

How do i do this?

Grtz,

fyver
Unknown User
2008-04-25 18:07:10
UPDATE `torrents` SET owner=newid WHERE owner=oldid
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728