Making a link Making a link
 

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

Making a link

Started by eeL, April 28, 2007, 04:46:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eeL

This is what I have as my cpmFetch in a PHP Box:
Quoteecho "<CENTER>";
echo 'Recent Member Photos';
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,4);
$objCpm->cpm_close();
echo 'View Gallery';
echo "</center>";

I want to make 'View Gallery' a hyperlink. How can I do this, because everything I try mucks up cpmFetch. Thanks

eeL

Figured it out.  ;)

Quoteecho "<CENTER>";
echo 'Recent Member Photos';
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,4);
$objCpm->cpm_close();
print ("<a href=\"your link here\">View Gallery</a>");
echo "</center>";

Ken.

Great job eel! ;D
I've been searching here on cpg for just that answer.