forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: Joachim Müller on March 03, 2005, 10:17:56 am

Title: Re: Dynamic creation of a album by another script
Post by: Joachim Müller on March 03, 2005, 10:17:56 am
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 like
Code: [Select]
INSERT 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