Bulk add keywords via PhpMyadmin? Bulk add keywords via PhpMyadmin?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Bulk add keywords via PhpMyadmin?

Started by Daethian, July 27, 2008, 07:54:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daethian

I don't know much about editing tables but I know it can be done.  I have one set of keywords I would like to add to an entire album. Instead of doing it through the gallery itself it seems like it would go faster to use PhpMyAdmin and insert.  Is this possible and would someone be willing to help me with the proper syntax for accomplishing this? My SQL version: 4.1.22-standard

"How naked?
4th base naked."

Nibbler

If you don't have any existing keywords then use

UPDATE cpg_pictures SET keywords = 'foo' WHERE aid = 123;

If you want to add to a set of existing keywords use

UPDATE cpg_pictures SET keywords = CONCAT(keywords, ' ', 'foo') WHERE aid = 123;

Change cpg to the prefix you use, foo to the keywords (space separated) and 123 to the album number.

Daethian

Thanks so much! I'll give it a shot :)
"How naked?
4th base naked."

Daethian

It worked!! Thanks again so much you have made my life so much easier!!!  *happy dance*
"How naked?
4th base naked."