Hello there ;)
I'm trying to build a scrip that would open a page that has a table and then
get all the values as variables so I can put them in a MySQL DB.
The problem is that I don't really know where to start...
This was my idea split the page in two cause there's 2 tables and I just
want the second one, then clean up what I don't want and finally assign the
variables...
something along these lines... sadly this doesn't work :(
<?php
ini_set('error_ reporting', E_ALL);
ini_set('user_a gent','MSIE 4\.0b2;');
$handle = fopen("http://www.scuniverse. net/Hist/HOF.htm", "r");
$page = fread($handle, 20000);
$row = explode("TR",$p age);
$i=0;
while ($i < 31)
{
list ($Rank, $Name, $Castle, $Land, $KS, $Race) = explode("TD",$r ow[$i]);
$i++;
}
I'm trying to build a scrip that would open a page that has a table and then
get all the values as variables so I can put them in a MySQL DB.
The problem is that I don't really know where to start...
This was my idea split the page in two cause there's 2 tables and I just
want the second one, then clean up what I don't want and finally assign the
variables...
something along these lines... sadly this doesn't work :(
<?php
ini_set('error_ reporting', E_ALL);
ini_set('user_a gent','MSIE 4\.0b2;');
$handle = fopen("http://www.scuniverse. net/Hist/HOF.htm", "r");
$page = fread($handle, 20000);
$row = explode("TR",$p age);
$i=0;
while ($i < 31)
{
list ($Rank, $Name, $Castle, $Land, $KS, $Race) = explode("TD",$r ow[$i]);
$i++;
}
Comment