j_milo_taylor Posted August 11, 2009 Share Posted August 11, 2009 Hi, I just cant get my head round this one: $xml_output .= "<artist_works>\n"; for($x =0 ; $x < mysql_num_rows($rs_artist_details) ; $x++){ $row_rs_artist_details = mysql_fetch_assoc($rs_artist_details); $xml_output .= "<works_details>\n"; <snip> $xml_output .= "<Work_Image>" . $row_rs_artist_details['image_image'] . "</Work_Image>\n"; $xml_output .= "<Work_Notes>" . $row_rs_artist_details['notes_work'] . "</Work_Notes>\n"; --- i need to put a wordwrap only on <Work_ Notes> something like...? $text = "$row_rs_artist_details['notes_work']"; $newtext = wordwrap($text, 20, "<br />\n"); ---> to $xml_output $xml_output .= "</works_details>\n "; } $xml_output .= "</artist_works>\n"; can anyone help? Link to comment https://forums.phpfreaks.com/topic/169778-xml_output-wordwrap/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.