Jump to content

CNGHL

New Members
  • Posts

    5
  • Joined

  • Last visited

CNGHL's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi There, I am having trouble with a link, I am trying to put two variable into a single link but I cannot seem to get it to work right, the following code gives me a white screen error so its not very helpful, when doing the coding in Notebook ++ the . .$row['ColorID'] is a different shade then the rest of the script so I am assuming I missing a semi colon or " or ' a long the way, any help would be wonderful echo "<td width='100'><div align='center'><a href=\"Part_Color.php?PartID=".$row['PartID'].'&Color_ID=" . $row['ColorID'] . "" style="text-decoration:none;">'.$row['PartID']."<br>";
  2. Thanks for your help
  3. Thanks, I fixed the string, but how do I separate the two variable in the img src.
  4. HI There, I am trying to separate two variables in a image string my code looks like this ECHO "<td width='100'><div align='center'><img src=\"http://www.brickbybricks.ca/php/images/".$row['Color_Name'].$row['PartID'].".gif\"></td>"; I cannot seem to figure out what to put between the two variables to make the img src work, the way it is right now I get the link back looking like this. <img src="http://www.brickbybricks.ca/php/images/Black4733.gif"> So I need a slash in between black at 4733 Thanks,
×
×
  • 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.