|
|
View Full Version : Resolved Fresh Eyes Please
Feckie 07-12-2012, 09: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, 11:56 AM 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, 01: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, 06: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
vBulletin® v3.8.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.