PHP函数变量传递

Rusty, just simply trying to pass stuff through parameters. What am I doing wrong?

//Insert into DB
function insert(x,y,z)
mysql_query("INSERT INTO x (y)
VALUES ('z')");


insert("test","name","Tyler");
function insert($x,$y,$z){
    mysql_query("INSERT INTO ".$x." (".$y.") VALUES ('".$z."')");
}
insert("test","name","Tyler");

Be sure you are referencing the variable correctly via $:

//Insert into DB
function insert($x, $y, $z)
{
    mysql_query("INSERT INTO $x ($y) VALUES ('$z')");
}


insert("test","name","Tyler");