Jump to content

$xml_output wordwrap


j_milo_taylor

Recommended Posts

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

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.