|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
doublespaced text loaded from PHP/MySQL
I have a problem that any text I load into a multiline componenet ends up double spaced...
I use this code in Flash:
var wtbData:LoadVars = new LoadVars();
to populate a mutliline text box with data.wtbData.onLoad = function(bSuccess:Boolean) { tArticle3.text = wtbData.result1; tArticle1.text = wtbData.result2; tArticle2.text = wtbData.result3; }; wtbData.sendAndLoad("http://www.server.com/query.php", wtbData, "POST"); in PHP, the file is: <?php mysql_connect("host","login","pass"); mysql_select_db("legavenue"); $result = mysql_query("select * from wheretobuy"); if (mysql_num_rows($result)){ while ($row = mysql_fetch_array($result)) { echo "&column1=".urlencode($row[0])."&column2=".urlencode($row[1])."&column3=".urlencode($row[2]); } } echo "&".rand()."&"; ?> The output I get if I just browse this directly is &column1=Los+Angeles+Mart%0D%0A110+E.+9th+St.%2C+a-1053%0D%0ALos+Angeles%2C+CA etc which is what I expect. But in Flash, all the text is doublespaced, and trace(this) outputs &column1=Los%20Angeles%20Mart%0D%0A110%20E%2E%209th %20St%2E%2C%20a%2D1053%0D%0ALos%20Angeles%2C%20CA how do I prevent all the doublespacing? cheers |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > doublespaced text loaded from PHP/MySQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|