Twey, this is what i have so far..
PHP Code:
<?
ob_start();
include("http://www.mysite.com/feed.html");
$feed = ob_get_contents();
ob_end_clean();
$heads = explode("\n", $feed);
$data = explode("|", $feed[1]);
$heads = explode("|", $feed[0]);
for($i=0;$i<count($heads);$i++) {
$username="user";
$password="pass";
$database="database";
$table="table";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO $table VALUES (";
for($i=0;$i<count($heads);$i++)
$query .= $data[$i] . ( $i + 1 < count($heads) ? "," : "" );
$query .= ");";
mysql_query($query);
}
?>
It just doesnt seem to add anything onto the database
Bookmarks