Things are going well. The input form, post form and report for are performing as expected. The problem now is uploading the files from the old database ot the new. Because the addess db is comprised of 7 separate but linked tables and the mysql db has but two tables, I converted the access db to an excell spreadsheet where all the 7 tables are listed, side by side. I changed the column headings in the excell file to match exactly, the column headings in the mysqldb. The script I found is from a host provider giving instructions to his subscribers and hope it will work for me.
<?php
$conn=mysql_connect("localhost");
$rs=mysql_select_db("survey", $conn);
$fcontents=file('./cfst.xls');
if($fcontents)
{
echo "Is Contents";
}
else
{
echo "No contects";
}
for($i=0; $i<sizeof($fcontents); $i++)
{
$line=trim($fcontents[$i]);
$arr=explode("\t", $line);
$sql="INSERT INTO survey VALUES ('".implode("','",$arr).'")";
$rs=mysql_query($sql, $conn);
echo "$rs.<br>\n";
}
if($rs)
{
echo "Is OK sql";
}
else
{
echo "Is no sql";
}
?>
However, all it returns is "error: unexpected end of file at line XX.
Any suggestions how to make this work?