Freedom-n-Democrazy Posted September 16, 2011 Share Posted September 16, 2011 How can this be written in PHP? echo '<IMG alt="" src=".$row['id']/thumb.png">'; Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted September 16, 2011 Share Posted September 16, 2011 There are a few different ways. echo "<IMG alt=\"\" src=\"{$row['id']}/thumb.png\">"; // OR // echo '<IMG alt="" src="' . $row['id'] . '/thumb.png">'; Quote Link to comment Share on other sites More sharing options...
Freedom-n-Democrazy Posted September 16, 2011 Author Share Posted September 16, 2011 I chose the second one because all the slashes in the first looked confusing. Thanks allot Pikachu2000. 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.