i think there is option in NBA Live to export data..
maybe for xl,microsoft access or other format.You can convert them to mysql easily as well.
Anyway, here is one sample code i used for my text file.You can get some idea.
<?php
require_once("mainfile.php");
global $dbi;
#echo "<input type=\"hidden\" name=\"file\" value=\"C:\\hadith.txt\">";
if(!empty($submit)) {
$count=0;
$sql=" LOAD DATA LOCAL INFILE '$form_data' INTO TABLE hadith FIELDS TERMINATED BY '@'
LINES TERMINATED BY '|'(volume, book, number, hadith)";
$result=mysql_query($sql,$dbi);
if( !$result)
die("Something wrong:".mysql_error());
echo " I have inserted records : $counts <br> Upload again ?? >>> <a href=http://localhost/load.php>[url]http://localhost/load.php[/url]</a>";
} else {
echo "<form method=\"post\" action=\"load.php\" enctype=\"multipart/form-data\">
<input type=\"file\" name=\"form_data\" size=\"40\">
<p><input type=\"submit\" name=\"submit\" value=\"submit\">
</form>" ;
}
?>