mcmuney Posted January 22, 2008 Share Posted January 22, 2008 When I echo alt=".$row['tags']." a description, it only shows the first word that follows a space. For example, if my description is "This is a happy cow", it will show "This". Link to comment https://forums.phpfreaks.com/topic/87283-solved-echo-problem/ Share on other sites More sharing options...
Barand Posted January 22, 2008 Share Posted January 22, 2008 <img src=missing.gif alt=this is a happy cow> will give an alt text = This as it interprets just the "this" as belonging to the alt attrubute. However <img src="missing.gif" alt="this is a happy cow"> will give the correct value. Aways quote attribute values. If echo is used echo '<img src="missing.gif" alt="this is a happy cow">'; Link to comment https://forums.phpfreaks.com/topic/87283-solved-echo-problem/#findComment-446471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.