Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Re: Dynamic creation of a album by another script  (Read 3547 times)

0 Members and 1 Guest are viewing this topic.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Dynamic creation of a album by another script
« 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
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.