This is how I would have done it:
<?php
$host = "localhost";
$user = "root";
$pass = "";
$db = "database";
$link = mysql_connect($host,$user,$pass);
if(!$link)
die(mysql_error());
$select = mysql_select_db($db);
if(!$select)
die(mysql_error());
$result = mysql_query("SELECT * FROM import");
while ($myrow = mysql_fetch_array($result))
{
// your data output here
}
$close = mysql_close($link);
?>