Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Re: Dynamic creation of a album by another script  (Read 3568 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.02 seconds with 20 queries.