First, add the "or die(...)" to the connect and query.
Second, print the error message from mysql along with your own message, eg:
@mysql_select_db($database) or die( "Unable to select database " . mysql_error());
Third, without knowing the table's columns I can't guess if the INSERT is right, but I doubt it is. If you have an autoincrement column you don't pass that column as one of the values. Maybe this will work:
$query = "INSERT INTO table_name (itemno, description) VALUES('$itemno','$description')";
mysql_query($query) or die(mysql_error());
As far as $itemnos and $descriptions arrays, you'll need to loop through them with a for loop and execute a query for each.