Originally posted by kasracer
I'm not very good with PHP yet, BUt I don't advice you to have your php script to DIRECTLY connect with the SQL database, open a HUGE ASS security hole. Just letting you know
why is there a security hole ? I always connect directly to my database using :
Code:
<?
$mysqlhost="serverhost";
$mysqldb="database";
$mysqluser="username";
$mysqlpwd="password";

$conn = mysql_connect($mysqlhost, $mysqluser, $mysqlpwd) or die(mysql_error()); 
mysql_select_db($mysqldb, $conn) or die(mysql_error());
?>
Every PHP&MySQL tutorial will teach you the same thing...

PS: to the starter of this thread : Is your .swf file on the same server as the php script(s) you're running ? otherwise Flash&PHP won't be able to communicate.

greetz, ava