...

View Full Version : Resolved Fresh Eyes Please



Feckie
07-12-2012, 10:57 AM
Can anyone tell me why this is not working

<a href=\"' . $link . '\" target=\"_blank\"><img src=\"./images/' . $categorie . '.png\" width=\"40\" height=\"40\" border=\"1\" title=\"' . $categorie . '\"></a>

Arcticwarrio
07-12-2012, 12:56 PM
is it inside <?PHP tags or <HTML> tags?


<?php
echo '<a href="' . $link . '" target="_blank"><img src="./images/' . $categorie . '.png" width="40" height="40" border="1" title="' . $categorie . '"></a> ';
?>

<html>
<BODY>
<a href="<?php echo $link;?>" target="_blank"><img src="./images/<?php echo $categorie; ?>.png" width="40" height="40" border="1" title="<?php echo $categorie; ?>"></a>
</BODY>
</html>

phpdude
07-12-2012, 02:10 PM
You should remove slashes before double quotes, because if " symbols are inside single quotes ' you don't need slashes before them

Feckie
07-12-2012, 07:57 PM
Yep it's inside php tags





is it inside <?PHP tags or <HTML> tags?


<?php
echo '<a href="' . $link . '" target="_blank"><img src="./images/' . $categorie . '.png" width="40" height="40" border="1" title="' . $categorie . '"></a> ';
?>

<html>
<BODY>
<a href="<?php echo $link;?>" target="_blank"><img src="./images/<?php echo $categorie; ?>.png" width="40" height="40" border="1" title="<?php echo $categorie; ?>"></a>
</BODY>
</html>

Sorted it' I wasn't calling it properly ... Duh!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum