# Could you respond nicely, please, about this script. It doesn't work

**URL:** <https://forum.kirupa.com/t/could-you-respond-nicely-please-about-this-script-it-doesnt-work/182290>\
**Category:** Uncategorized\
**Created:** [March 16, 2006, 10:39pm UTC](https://forum.kirupa.com/t/could-you-respond-nicely-please-about-this-script-it-doesnt-work/182290 "2006-03-16T22:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregmax17](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gregmax17/32/2243_2.png) [@gregmax17](https://forum.kirupa.com/u/gregmax17)\
**Post date:** [March 16, 2006, 10:39pm UTC](https://forum.kirupa.com/t/could-you-respond-nicely-please-about-this-script-it-doesnt-work/182290/1 "2006-03-16T22:39:25Z")

</div>

I am trying to insert data into a DB, but it won’t enter. Here is what I have for the AS:

on(release) {

```
if(new_player_name ne '')
{
    gotoAndPlay(2);
    new_player_name.loadVariables("create_player.php", "POST");
    status = "Creating, please wait...";
}
else 
{
    status = "Enter a New Player Name";
}

```

}

And my PHP looks like this:

\<?

include(’…/db/db\_access.php’);

$player\_name = $\_POST[‘new\_player\_name’];

mysql\_query(“insert into player set player\_name=’$player\_name’”);  
$result = mysql\_query(“select player\_id from player where player\_name=’$player\_name’”);  
$player\_id = mysql\_result($result, 0, ‘player\_id’);

$result = mysql\_query(“insert into old\_position (player\_id, oldx\_tile, oldy\_tile, on\_map) values (’$player\_id’, ‘7’, ‘7’, ‘1’)”);

print “status = Created&checklog=1”;

?\>

What am I doing wrong? Also, I need to have it be Flash, it’s the current player I have, sorry.
