Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: May 1999
Posts: 78
Member
Member
Offline
Joined: May 1999
Posts: 78
Okay, I found why the last thread isn't moved, here is an example:

UPDATE w3t_Posts
SET B_Board = 'website'
WHERE B_Main = '1569' OR B_Main = '35731'
AND B_Board = ''
;

The precedence of AND and OR makes it: B_Main = '1569 OR (B_Main = '35731' AND B_Board = '') which is all except the last one. I fixed it by adding parens around the WHERE $Formatted_q in the UPDATE. Of course it doen't move posts now becasue of $oldbard not being set, so on to that...

Lee

Sponsored Links
Entire Thread
Subject Posted By Posted
Beta-[6.3-6.4] Mass Threads Move for 6.3 JoshPet 06/15/2003 8:57 AM
Re: Beta-[6.3] Mass Threads Move for 6.3 Turbosport 06/17/2003 11:18 AM
Re: Beta-[6.3] Mass Threads Move for 6.3 Turbosport 06/17/2003 11:23 AM
can I move 30 000 threads at once? All threads except first 20 threads? mario2 06/17/2003 9:31 PM
Re: Beta-[6.3] Mass Threads Move for 6.3 JoshPet 06/18/2003 1:32 AM
I did a little hack on it to use it for archiving mario2 06/19/2003 11:52 AM
Re: I did a little hack on it to use it for archiving tenshu 09/12/2003 4:21 AM
Re: I did a little hack on it to use it for archiving JoshPet 09/12/2003 4:30 AM
Re: I did a little hack on it to use it for archiving tenshu 09/12/2003 6:35 AM
Re: I did a little hack on it to use it for archiving JoshPet 09/12/2003 8:06 AM
Re: I did a little hack on it to use it for archiving ksanuk 11/27/2003 5:07 AM
Re: I did a little hack on it to use it for archiving dman_dup1 11/27/2003 5:21 AM
Re: I did a little hack on it to use it for archiving ksanuk 11/27/2003 9:00 AM
Re: I did a little hack on it to use it for archiving lcantey 01/14/2004 8:10 AM
Re: I did a little hack on it to use it for archiving lcantey 01/15/2004 2:41 AM
Re: I did a little hack on it to use it for archiving lcantey 01/15/2004 3:01 AM
Re: Beta-[6.3-6.4] Mass Threads Move for 6.3 Sheall 05/11/2004 1:52 PM
Re: Beta-[6.3-6.4] Mass Threads Move for 6.3 JoshPet 05/12/2004 4:48 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)