snowman15 Posted July 26, 2007 Share Posted July 26, 2007 Hey I have the code: <img src="<?php echo $picture ?>" width="100" height="35" alt=""> I'm trying to use a php string inside of an html image script. any help? Quote Link to comment Share on other sites More sharing options...
DeepakJ Posted July 26, 2007 Share Posted July 26, 2007 You can if you have php installed and if you define $picture. Quote Link to comment Share on other sites More sharing options...
snowman15 Posted July 27, 2007 Author Share Posted July 27, 2007 picture is defined as the url of the image. I'm uploading it to a php enabled web server and it still doesnt work. is that the right syntax? its not working Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted July 27, 2007 Share Posted July 27, 2007 I Guess I have to be the master! PLEASE REMEBER TO CLOSE YOUR TAGS So The Script Should Look Like This <img src="<?php echo $picture; ?>" width="100" height="35" alt=""> That shoud do it! Case Closed also remeber to put this in a php file something like test1.php Quote Link to comment 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.