<img src=...> but with variable

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
lokanath7
New php-forum User
New php-forum User
Posts: 139
Joined: Mon Nov 15, 2010 12:11 am

Re: <img src=...> but with variable

Post by lokanath7 » Fri Dec 24, 2010 12:09 am

do this
<img alt="" src="<?php echo $picadress;?>" />

mayhemiz
New php-forum User
New php-forum User
Posts: 38
Joined: Thu Dec 09, 2010 8:13 am

Re: <img src=...> but with variable

Post by mayhemiz » Wed Jan 19, 2011 8:02 am

hello,or simply:

Code: Select all

<?php
echo "<img src=\"".$variable."\">";
?>

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests