why is there a security hole ? I always connect directly to my database using :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
Every PHP&MySQL tutorial will teach you the same thing...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()); ?>
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




Reply With Quote