0) ? "," : "") . "$key='$val'"; $keys .= (($i > 0) ? "," : "") . "$key"; $vals .= (($i > 0) ? "," : "") . "'$val'"; $i++; } } return array($sql, $keys, $vals); } ?>