\n";
for($i = 0; $i < count($a); $i++)
{
$arr = $a[$i];
$number = $arr[0];
$title = $arr[1];
$content = $arr[2];
$date = $arr[3];
$author = $arr[4];
$url = $arr[5];
$query = "INSERT INTO $mytable(ID, post_title, post_content, post_author, post_date, guid) VALUES ('$number', '$title', '$content', '$author', '$date', '$url')";
$results = $base->exec($query);
}
if(!$results)
{
echo "$mytable not updated.";
exit(0);
}
echo "Data entered into $mytable successfully";
?>