Re: Dynamic creation of a album by another script Re: Dynamic creation of a album by another script
 

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

Re: Dynamic creation of a album by another script

Started by Joachim Müller, March 03, 2005, 10:17:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

as your reviews are not part of coppermine, I can't give you actual code, but just some generic answer: you have to trigger a mySQL command that creates another album in coppermine's "albums" db table, simple as that. The query would look something likeINSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')(code taken from coppermine file "delete.php", review it for details).

Joachim