Hello I have this code if ($seo_on == 0) { echo "<div align='center'><a href='{$site_url}/index.php?task=viewnew'><img src="template/images/newest.png" border="0" />View More Newest Videos</a></div>"; } else { echo "<div align='center'><a href='{$site_url}/new.html'><img src="template/images/newest.png" border="0" />View More Newest Videos</a></div>"; } I don't have error before but when I tried to put an image inside it (the bolded part) I got an error, I wonder if I put the image code wrong... Anyone? Thanks!
following should solve the problem.. Enclosing image src and border in single quotes solves the problem in this case.. if ($seo_on == 0) { echo "<div align='center'><a href='{$site_url}/index.php?task=viewnew'><img src='template/images/newest.png' border='0' />View More Newest Videos</a></div>"; } else { echo "<div align='center'><a href='{$site_url}/new.html'><img src='template/images/newest.png' border='0' />View More Newest Videos</a></div>"; } Code (markup):
btw if i can suggest you try Adobe product known as Adobe Dreamweaver CS4 it is great for php's and editting them visual php in one click and fix code.. not always code is written as A+ style but it shure helps ! just a suggestion.
I use homesite, it's a pretty simple editor but has some nice tools and provides syntax highlighting for many different languages.