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 Quote 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...
Solution ginerjm Posted June 2, 2014 Solution Share Posted June 2, 2014 <?php echo "<img src='user/" . $log_username . "/" . $main_image . "' width='130' height='150' id='pic5'/>"; ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.