# as3 database question. php mysql

**URL:** <https://forum.kirupa.com/t/as3-database-question-php-mysql/306590>\
**Category:** flash\
**Created:** [March 18, 2010, 1:48am UTC](https://forum.kirupa.com/t/as3-database-question-php-mysql/306590 "2010-03-18T01:48:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgarsteck](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mgarsteck](https://forum.kirupa.com/u/mgarsteck)\
**Post date:** [March 18, 2010, 1:48am UTC](https://forum.kirupa.com/t/as3-database-question-php-mysql/306590/1 "2010-03-18T01:48:08Z")

</div>

nothing seems to be happening here when i hit the send button. I dont get any errors or anything. Just nothing happens.

basically all I want to do here is have them fill it out, those variables are sent to the php which is sent to my mysql database.

can anyone help me out here?

```auto
var variables:URLVariables = new URLVariables();
var varLoader:URLLoader = new URLLoader();

var varSend:URLRequest = new URLRequest("http://drdatabase.comoj.com/form.php");
varSend.method = URLRequestMethod.POST;
varSend.data = variables;

stop();

sendBtn.addEventListener(MouseEvent.MOUSE_DOWN, send1);

function send1(Event:MouseEvent):void {

	varLoader.load(varSend);
	variables.fName = nameTxt.text;
	variables.email = emailTxt.text;
	variables.phone = phoneTxt.text;
	variables.address = addressTxt.text;

}

```

```php
<?php

$link = msql_connect("mysql5.000webhost.com", " *******, "*******");

mysql_select_db("a5279220_dr";

$name = mysql_real_escape_string($_post["name"]);

$email = mysql_real_escape_string($_post["email"]);

$phone = mysql_real_escape_string($_post["phone"]);

$address = mysql_real_escape_string($_post["address"]);

$query = "INSERT INTO	drList (Name, Email, Phone, Address)";

$query = "VALUES ('" . $name . "', '" . $email . "', '" . $phone . "', '" . $address . "');

if (!mysql_query($query,$con());

}

else

{

echo "1 record added";

}

mysql_close($con);

?>

```
