# Help with Php MySqL Flash tutorial

**URL:** <https://forum.kirupa.com/t/help-with-php-mysql-flash-tutorial/311340>\
**Category:** Uncategorized\
**Created:** [July 3, 2010, 12:07pm UTC](https://forum.kirupa.com/t/help-with-php-mysql-flash-tutorial/311340 "2010-07-03T12:07:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazek](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kazek](https://forum.kirupa.com/u/kazek)\
**Post date:** [July 3, 2010, 12:07pm UTC](https://forum.kirupa.com/t/help-with-php-mysql-flash-tutorial/311340/1 "2010-07-03T12:07:36Z")

</div>

Hello, i’m new here and i have a problem right at the beginning.  
I just can’t get this little script from this tutorial to work:  
[http://www.kirupa.com/developer/actionscript/flashphpxml\_integration.htm](http://www.kirupa.com/forum/../developer/actionscript/flashphpxml_integration.htm)  
I created the database on my server, executed the query properly, the connection seems to be fine, but i have no data on the flash movie, if i hit directly sites.php on the browser i get this warning:

**Warning** : mysql\_numrows(): supplied argument is not a valid MySQL result resource in **/mylink/sites.php** on line **10**  
\*\*Database Output

[LEFT]here’s a bit of the code:

```php
$user=" ****";
$password=" ****";
$database="fitflash";
mysql_connect("sql. ****.com","****"," ****");
@mysql_select_db(" ****") or die( "Unable to select database");
$query="SELECT * FROM contacts";
$result=mysql_query($query);

$num=mysql_numrows($result); // the warning

mysql_close();

```

Please help i really need this to work…

[/LEFT]

\*\*
