![]() |
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 |
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:
|
thanks
this bit will work? Code:
title='additional text '+title |
if you are trying to append an existing variable to a new variable in PHP you use the following format
PHP Code:
|
Quote:
|
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); |
All times are GMT. The time now is 04:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|