Hi,
In effect, this is what I wanna do.
function insert($dbarray[])
{
$sql="INSERT INTO $table VALUES($dbarray[])";
execute($sql);
}
That's very simplistic, but you should get the idea. However, it won't work like this. Some stuff has to be done to the array before it goes to the database. For example, it has to be comma delimited and quoted.
If you're doing something cool that does this, could you please fill me in? I have a couple of hacks in mind (using the join function and some hardcoded quotes, or the array_walk function), but I just wanted to know if there's a simple way to do this.
PS - the array is a result of some network calls. Results come in from the network and are just appended to the array.