Jump to content

Remix919

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Remix919's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi there, I'm trying to make a watermark using a JPG background file and a JPG logo file. Now, I want certain colors of the logo to be transparent, namely shades of green. Anyone know how to do this? Here is my code I am using: $green = imagecolorallocate($jpgimage, 0, 255, 1); imagecolortransparent($jpgimage, $green); imagecopymerge($img, $jpgimage, 100, 200, 0, 0, 640, 480, 100); And that code works fine, but it only makes the $green RGB transparent, how can I make more than just that one RGB transparent? I would ideally want to make all shades of green to appear transparent.
  2. Ok, so first off, here is how the tables are setup: Cars_Table | ID, CatID Categories_Table | ID, Parent_ID, Name Now, both parent categories and sub-categories are in the same table. the C_Table.CatID shows only the sub-category the item is in. How would I make a list of the distinct names of Parent category names (those with Parent_ID = 0) in ASC order, but I want to only pull the parent categories for which there is an item associated. Essentially, the makes and models of the cars are stored in the same table, the Makes are the ones with Parent_ID = 0 and the Models also have parent ID's. The Cars_Table.CatID only shows the Model ID. I'm still fairly new to PHP and this one is really confusing me O.o
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.