Jump to content

Recommended Posts

I am trying to show a image with a url link, the link is showing when you hover over it but the  image is not showing.

Getting image from my laptop.

What am I doing wrong here?

 

<?php													
	$domains   = [  "SHIBA INU"             => "BINANCE%3ASHIBBUSD",
					"BABY DOGE BILLIONAIRE" => "HUOBI%3ABABYDOGEUSDT",
					"COIN 98"               => "FTX%3AC98USD"
				];
					$chart = strtolower($checkSqlRow["CHART"]);
					echo "<td><a href='https://www.tradingview.com/chart/P2500000/?symbol={$domains[$checkSqlRow["CHART"]]} 'style='color:lime' 							target='_blank' ><img src=\assets\img\Table\chart1.png\"  />$chart</a></td>";
?>							

 

Screenshot_1.png

Link to comment
https://forums.phpfreaks.com/topic/315134-image-does-not-want-to-show-in-my-table/
Share on other sites

I think you are missing a single quote in your img tag as well.  See below.

echo "<td>
	<a href='https://www.tradingview.com/chart/P2500000/?symbol={$domains[$checkSqlRow["CHART"]]}' 
       style='color:lime;' 
       target='_blank'>
	<img src='\assets\img\Table\chart1.png\'/>
	$chart
	</a>
	</td>";

And perhaps that trailing backslash on the png filename is not necessary.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.