Jump to content

phpnewbie1212

Members
  • Posts

    5
  • Joined

  • Last visited

phpnewbie1212's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello All, Just a query. I have Fla and php file. I'm trying to connect flash to a mysql database through PHP to create a login system for Flash. I've setup the server and database, and i'm trying to write the flash/php to connect them. My question is in the AS3 file were do you specify the location of the phpconnection file and the exact syntax for requesting access to the php file? Sorry if it sounds like a dumb question but im new to this. Thanks
  2. I am newbie when it comes to PHP.You probably know this from the question i am about to ask. I have created a php file in Notepad text editor. I want the file to connect to my database in mysql. I am unsure what the best approach is to link the file to the database in mysql that i wish to activate ?
  3. Hey, Thank you both for your replys. Your advice was great! I appreciate your help. Thank You
  4. Oops sorry i forgot to show the code lol. Here it is: <?php //Declare variables $username = $_POST['username']; $password = $_POST['password']; // //mysql connection variables $email = $_Post['email']; $username = $_POST['username']; $password = $_POST['password']; $age = $_POST['age']; $country = $_POST['location'] // //connects to database $link = mysql_connect("localhost","example_database","password") or die (mysql_error()); mysql_select_db("table_users") or die(mysql_error()); ?> $email = $_Post['email']; $username = $_POST['username']; $password = $_POST['password']; $age = $_POST['age']; $country = $_POST['location'] //collects data from table $data = mysql_query("SELECT * FROM users"); $results = mysql_query($query) or die(mysql_error()); //put users info into the $info array $info = mysql_fetch_array( $data )) $userbio = $data["name"]; echo "systemResult=$userbio"; } } else { echo "systemResult=The login detail dont much our records } ?>
  5. Hello All, I am new to this forum and new to PHP. In Flash i am building a login system for my website. To do this I need to create a php file for Flash to connect to the mysql database. Now, i am a complete novice to php and i am struggling to find the right code for my php file. Mysql database is called "example" and my table is called "users" it has six columns... email,username,password,age,country,and gender. My php file is below: Can you please take a close look. I know it's probably full of errors but i have only just started learning php. Can you please highlight the errors for me and if i am missing something can you please tell me. Thank You Mark
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.