<p>I'm trying to make a class that will execute any one of a number of stored procedures with any amount of variables</p>

<p>Im using php and mysqli</p>

<ul>
<li>My class enumerates an array and constructs a string based on the number of elements if any</li>
<li>giving something like this <code>CALL spTestLogin(?,?)</code> for example</li>
<li><p>I now need to bind the input from my array using somethin like this:</p>

<p>$stmt->bind_param($this->paramTypes,$this->paramValues);//paramValues is my array</p></li>
</ul>

<p>Then if that works I can work on getting my results</p>

<p>Any ideas</p>

You have to do something like this:
```
```
$params=array_merge(
    array($this->paramTypes), 
    $this->paramValues
);
call_user_func_array(array($stmt, 'bind_param'), $params);
```
```
given that
```
$this->paramTypes
```
is a string in the format required by
```
mysqli_stmt::bind_param
```
- if not, you have to create this
```
string
```
parameter first.
I don't know if
```
out
```
or
```
inout
```
parameters do work in this case.