cch
cch

Reputation: 3386

image source with variable

Is this wrong ?

<img src="frame_src/"<?php echo $frameid ?>".png"/>

Where the $frameid equals to a number i.e.= 2

Upvotes: 1

Views: 93

Answers (1)

Rippo
Rippo

Reputation: 22424

Try this:-

<img src="frame_src/<?php echo $frameid ?>.png"/>

I removed the two quotes (")

Depending on your set up you might also be able to do this...

<img src="frame_src/<?=$frameid ?>.png"/>

Upvotes: 1

Related Questions