I have the following array named $people and this is the output I get with a print_r():
Array (
[0] => "Zyzz","fitness","21","Male"
[1] => "Arnold","bodybuilder","23","Male"
[2] => "Jeff","fitness","19","Male"
)
How can I insert these values to my MySQL Database?
I have a vague idea wich is:
$sql=" INSERT INTO famous (name,type,age,sex) VALUES ($people)";
mysql_query($sql);
How can I accomplish this correctly?
Thanks in advance