The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
mysql query involving dateline
I want to change the title of all new threads that were posted in a certain forum in the last 30 days.
Can you help me with the query? I think it should be something like... Code:
UPDATE thread SET title='additional text '+title WHERE dateline<???? AND forumid=1; |
#2
|
|||
|
|||
You can use a timestamp generator (http://www.4webhelp.net/us/timestamp.php) to get the variable you need. If you're doing this in PHP, you can use the following...
PHP Code:
|
#3
|
|||
|
|||
thanks
this bit will work? Code:
title='additional text '+title |
#4
|
|||
|
|||
if you are trying to append an existing variable to a new variable in PHP you use the following format
PHP Code:
|
#5
|
||||
|
||||
Yes, that should work. However, always try on some test data first!
|
#6
|
||||
|
||||
I've never tried with a Plus Symbol before, but the way that I would do it is:
Code:
UPDATE blah SET bleh=CONCAT('blah blah blah ', bleh); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|