Jump to content

[SOLVED] php and flash


gwolff2005

Recommended Posts

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

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.