$foo = array('candy', 'bar', 'does'); $sql = "INSERT INTO tabla(a,b,c) VALUES('$foo[0]', '$foo[1]', '$foo[2]')";