Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / July 2008



Tip: Looking for answers? Try searching our database.

loadvariables get length

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bossche001 - 08 Jul 2008 10:40 GMT
How can I get the length of the amount of data that a php script has pushed as a result of a loadvariables?
Noelbaland - 08 Jul 2008 11:57 GMT
Hello,

If you're using MySQL to pull your data from a table - then use
mysql_num_rows() to get the total of records and store it in a variable(a).  
Then append that variable at the beginning of your output in PHP(b).
Then you can use that variable in Flash for looping or whatever(c).

(a) $num = mysql_num_rows(YOUR_QUERY);

(b) echo "num=".$num."&data1=blah&data2=more blah"; // etc

Hope that helps!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.