lexijensjacejack Posted June 2, 2014 Share Posted June 2, 2014 I would like to be able to use this <img src="user/<?=$log_username. '/' . $main_image;?>" width="130" height="150" id="pic5"/> to work within php and i am having a had time doing so . Any ideas? $log_username refers to the users specific username folder within the main users folder html source code looks like this ,but i need to reference this within a PHP code block not html <img src="user/lexi/pic.png" width="130" height="150" id="pic5"> any ideas? thanks guys Link to comment https://forums.phpfreaks.com/topic/288940-any-ideas-on-how-i-would-write-html-into-php/ Share on other sites More sharing options...
ginerjm Posted June 2, 2014 Share Posted June 2, 2014 <?php echo "<img src='user/" . $log_username . "/" . $main_image . "' width='130' height='150' id='pic5'/>"; ?> Link to comment https://forums.phpfreaks.com/topic/288940-any-ideas-on-how-i-would-write-html-into-php/#findComment-1481677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.