[TIP] comments database cleanup [TIP] comments database cleanup
 

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

[TIP] comments database cleanup

Started by MaThIbUs, February 08, 2004, 09:12:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MaThIbUs

Assuming you use "cpg_" as a table prefix:

UPDATE `cpg_comments`
SET `msg_body` =
REPLACE(`msg_body`, '  ', ' ');


This will remove double spaces in the comments table. You can do the same to picture descriptions, keywords etc etc.

Just a small tip :)

/m_aTh!bUs