--- On Sat, 11/8/08, bryan_is_south <[EMAIL PROTECTED]> wrote: > Is it possible to INSERT or UPDATE MySQL data directly from > flash, whether or not PHP is used too? > > For example, I want an embedded flash application, and based on what a > user selects in that application, it automatically UPDATES a MySQL table. > > P.S. I know this is solely a PHP group, and sorry if this > topic is too off-topic, but it may involve some PHP along the way...
Flash applications run on the client machine. While it might be possible to open up MySQL and have a Flash program communicate directly with it, it would not be advisable to do so because of security implications. For example, your script sent out would need to have the MySQL login information to make the connection and there are Flash decompilers which could reveal this code to the outside. Your sense is correct, your ActionScript will need to send a request to a PHP script via GET or POST. That script would take the data, make sure it is legit, and communicate with MySQL. Work on how to have a Flash form that can send data to PHP. Once you have that mastered, you can have the data sent in the background upon any event in Flash and have the PHP script write to MySQL. James Keeline Considering LAMP positions in San Diego, CA.