"another webhost"
-that mean it is another environment, another configuration, host name might change, passwords...
-wrong database name
-the mysql table does not exists
somewhere you did not change the table names in your query.
lets print the mysql_error() get to know if the table does exist.
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password");
mysql_select_db("nonexistentdb", $link);
echo mysql_errno($link) . ": " . mysql_error($link). "\n";
mysql_select_db("kossu", $link);
mysql_query("SELECT * FROM nonexistenttable", $link);
echo mysql_errno($link) . ": " . mysql_error($link) . "\n";
?>