Hello, I recently built my first database in phpMyAdmin. I really find this fascinating. My table has id, username, password and age in columns.In Flash CS6 i have an as3 file. In notepad i have a php file. I am trying to connect my Flash login system to mysql database through php to create a login system in Flash.I have tested both files and there not working. I am using a login function in flash that sends the username/password/ages variables to the PHP script. the PHP script is then checking that those variables are stored in the database.Here is the code that i am using:

What do you mean by "they don't work"? Do you get an error message or just not the result you expected?

The PHP code you've posted has a syntax error in it - unclosed single quote on the first line. And if you fix that, the PHP doesn't seem to be doing any checking against the variables you're (presumably) POSTing to it from the Flash script, you're just SELECTing all users in the table.

Do you get the expected records if you run your query in a MySQL command line? Does your table actually have the data you're looking for?