Jump to content

Partial Data being Displayed


mcmuney

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/118574-partial-data-being-displayed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.