Im new to data input using flash, can someone please tell me how to connect to a mysql database.
hi jlw12689 -
i have a pretty standard code i use to do just this. It goes SOMETHING like
<?php
$host="localhost";
$db="databaseName";
$user="username";
$pass="secretpassword";
$connect=mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db,$connect);
?>
jlw12689 - 16 Jul 2006 12:26 GMT
thank you, now this probably a stupid question, but do i type that in flash actionscript or do i type it using dreamweaver and call the file in flash.
Put the above code in Dreamweaver and save it as .php. Then call the file using either the send or sendandload function in Flash. You'll have to alter the php of course for your own purposes.
jlw12689 - 20 Jul 2006 17:39 GMT
thank you for your help
micahkoga - 21 Jul 2006 06:40 GMT
You should really check into amfphp. it's flash remoting with php. http://www.amfphp.org . it's very quick and very easy, it also generates some code for you.