MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old March 29th, 2004, 05:35 PM
pr0fess0r pr0fess0r is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 pr0fess0r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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();
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");
to populate a mutliline text box with data.
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > doublespaced text loaded from PHP/MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway