mcmuney Posted August 7, 2008 Share Posted August 7, 2008 When I display the following code, only partial field is being displayed: $tag = $row['tags']; echo "<a href='http://www.domain.com/".$date."/".$id.".jpg'><img class='img_box2' src='/photos/".$date."/".$id.".jpg' alt='".$tag."' title='".$tag."' id='pic1' onload='checkSize(this.width,this.id)'></a>"; For example, in the DB, the tags field would be "this is the description" but the echo line would only show "this"; however, when I display it outside of the echo line, using <?=$row[tags];?>, it displays all the data. Quote Link to comment https://forums.phpfreaks.com/topic/118574-partial-data-being-displayed/ Share on other sites More sharing options...
.josh Posted August 7, 2008 Share Posted August 7, 2008 Is it inside some kind of div or something that has some kind of fixed width? Quote Link to comment https://forums.phpfreaks.com/topic/118574-partial-data-being-displayed/#findComment-610460 Share on other sites More sharing options...
mcmuney Posted August 7, 2008 Author Share Posted August 7, 2008 No divs. Quote Link to comment https://forums.phpfreaks.com/topic/118574-partial-data-being-displayed/#findComment-610462 Share on other sites More sharing options...
.josh Posted August 7, 2008 Share Posted August 7, 2008 what about your img_box2 class? does it have some kind of fixed width or some other css attribute that would cause it to truncate, but not truncate by simply echoing it out, since it's not inside that class? Quote Link to comment https://forums.phpfreaks.com/topic/118574-partial-data-being-displayed/#findComment-610463 Share on other sites More sharing options...
kenrbnsn Posted August 7, 2008 Share Posted August 7, 2008 Do a "show source" on the generated HTML and see what's there. Most likely you have a problem with unbalanced quotes in the tag. Ken Quote Link to comment https://forums.phpfreaks.com/topic/118574-partial-data-being-displayed/#findComment-610595 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.