using cpmfetch to output results as hyperlink using cpmfetch to output results as hyperlink
 

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

Main Menu

using cpmfetch to output results as hyperlink

Started by johnner, January 05, 2006, 03:20:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

johnner

I have a page outside of Coppermine that says how many images have been uploaded in the past x number of days.  The code works fine, but I want the entire output to be a hyperlink.  I know this is picky, but it bothers me that it isn't a full URL..  The code is as follows:

<?php 

include "./cpmfetch.php";

$objCpm = new cpm('/gallery');

$objCpm->cpm_getMediaCountAddedInLast(7);

print 
" ";

print (
"<a href=\"http://www.johnner.com/gallery/thumbnails.php?album=lastup&cat=0\">new images</a>");

print 
" in the last 7 days";

$objCpm->cpm_close(); 

?>


Basically, I want the number of uploaded files to be part of the hyperlink that would be include the entire 5 new images in the last 7 days.  How do I include the output of the cpm_getMediaCountAddedInLast(7) function to be part of the hyperlink.

ecto