xenoalien Posted March 29, 2009 Share Posted March 29, 2009 Okay, here is part of my code. It displays right in Google Chrome but no Firefox or IE. if($row['filetype']=='mp3') {$fileiconpath = $websitelink.'images/icons/music.png';} else {$fileiconpath = 'images/icons/page.png';} //================================================== echo "</td><td>"; echo "<center><img src="".$fileiconpath.""></center>"; echo "</td></tr>"; Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted March 29, 2009 Share Posted March 29, 2009 Here's how I'd do this echo $websitelink; // to make sure it's right see if it has the trailing / or not if($row['filetype']=='mp3') {$fileiconpath = $websitelink.'images/icons/music.png';} else {$fileiconpath = 'images/icons/page.png';} //================================================== echo $fileiconpath; // just to make sure it looks right echo "</td><td>"; echo "<center><img src='".$fileiconpath."'></center>"; echo "</td></tr>"; 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.