gwolff2005 Posted April 30, 2009 Share Posted April 30, 2009 Hi guys, I have a php code for generating a a random quote form mysql. Does anyone know how I can transfer this in flash? <?php $user="guntmar"; $password="****"; $database="guntmar"; $connection=mysql_connect('localhost',$user,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT `quote`, `author` FROM `quotes` ORDER by rand() LIMIT 1"; $result=mysql_query($query) or die(mysql_error()); $quote = htmlentities(mysql_result($result,$i,"quote")); $author = htmlentities(mysql_result($result,$i,"author")); echo("<blockquote>" . $quote . "</cite></blockquote>"); mysql_close($connection); mysql_free_result($Recordset1); ?> Link to comment https://forums.phpfreaks.com/topic/156229-solved-php-and-flash/ Share on other sites More sharing options...
mikesta707 Posted April 30, 2009 Share Posted April 30, 2009 a good tutorial on it. It is actually quite easy http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm hope that helps! Link to comment https://forums.phpfreaks.com/topic/156229-solved-php-and-flash/#findComment-822484 Share on other sites More sharing options...
gwolff2005 Posted April 30, 2009 Author Share Posted April 30, 2009 thanks!!! Link to comment https://forums.phpfreaks.com/topic/156229-solved-php-and-flash/#findComment-822489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.