# Passing Arguments to Php Function

**URL:** <https://forum.kirupa.com/t/passing-arguments-to-php-function/285971>\
**Category:** flash\
**Created:** [April 8, 2009, 12:03pm UTC](https://forum.kirupa.com/t/passing-arguments-to-php-function/285971 "2009-04-08T12:03:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unkempt](https://avatars.discourse-cdn.com/v4/letter/u/c2a13f/32.png) [@unkempt](https://forum.kirupa.com/u/unkempt)\
**Post date:** [April 8, 2009, 12:03pm UTC](https://forum.kirupa.com/t/passing-arguments-to-php-function/285971/1 "2009-04-08T12:03:24Z")

</div>

Hi - i have been playing with Zend and ran into a problem…

Sorry for my lack of php knowledege…

In my database i have a field called “live”, and i only want to grab entries in a table that have “live” set to “1”

This is what i have tried, but it doesn’t work…

InMyPhp…

```php
public function getTutorialsLive($live) 
   { 
      $result = mysql_query("SELECT * FROM testTable WHERE live = '%s';", $live); 
      $t = array(); 
       
      while($row = mysql_fetch_assoc($result)) 
      { 
         array_push($t, $row); 
      } 
       
      return $t; 
   }  

```

In my Flash…

```auto
function getMyTutorialsLive():void
{
   var res:Responder = new Responder(getMyTutorialsLiveResult, onError);
   nc.call("Tutorials.getTutorialsLive", res, 1);
}

```

if you know the answer, how would you also pass several arguments  
Any help would be much appreciated
