# Php & flash help

**URL:** https://forum.kirupa.com/t/php-flash-help/203963
**Category:** Uncategorized
**Created:** [October 16, 2006, 1:55am UTC](https://forum.kirupa.com/t/php-flash-help/203963 "2006-10-16T01:55:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)
#### Post date: [October 16, 2006, 1:55am UTC](https://forum.kirupa.com/t/php-flash-help/203963/1 "2006-10-16T01:55:19Z")

</div>

Hey,

does anybody know how to setup a kind of if the insert in php and mysql works goto frame “quiz” in flash

here is my php code thanks in advance 🙂

```php
<?
    include ('functions.php');
    $my_link = dbOpen();
    $my_fname = $_POST['fname'];
    $my_lname = $_POST['lname'];
    $my_email = $_POST['email'];
    $my_mobile = $_POST['mobile'];
    $my_company = $_POST['company'];
    //$my_score = $_GET['score'];
    $my_query = "INSERT INTO users (`firstname`, `lastname`, `email`, `mobile`, `company`) VALUES ('$my_fname','$my_lname','$my_email','$my_mobile','$my_company')";
    $my_result = mysql_query($my_query);
    //echo $my_query;
    dbClose($my_link);
    
// $num = mysql_num_rows( $my_result );
//if ($num == 1){
    //print "status=Welcome to Marketing Mind Challenge&checklog=1";
    //} else {
    //print "status=Sorry, but your registration form was incomplete&checklog=2";
//}

    $my_url = "Location:game.swf?insert=success";
    header($my_url);
    

?>

```

it works and adds the content thats fine…its just when i try goto “quiz” frame when submitted form.

i tried my way but got sql error mysql\_num\_rows is not a …something or something.

cheers
