Dynamic Image Borders based on table value Dynamic Image Borders based on table value
 

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

Dynamic Image Borders based on table value

Started by pvierheilig, September 09, 2008, 06:48:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pvierheilig

I am looking for any advice as to where one might begin to have the borders of images change in color based upon the value of a database field entry for each record/picture from the _pictures table  ('user4' field/column, for example).  I am able to change the border widths, colors etc., for all images in both the thumbnail/album view and in the intermediate and full-size image view using a database value.  Yet I can not accomplish the 'loop' I seem to need to have each image applied its own color...  I am using CPG 1.4.18 with the latest PHP...and everything else is working great.

Thanks,

Patrick