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". Quote 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">'; Quote Link to comment https://forums.phpfreaks.com/topic/87283-solved-echo-problem/#findComment-446471 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.