Trying to create in mySQL

Warning: mysql_query() [function.mysql-query]: Can't connect to MySQL server on 'localhost' (10061) in D:\Hosting\5704590\html\studentemail_form.php on line 14

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\Hosting\5704590\html\studentemail_form.php on line 14
Can't connect to MySQL server on 'localhost' (10061)

This is my code:

<?php

function Visit($url)
{
$dbc = mysql_connect(); // set this to connect properly
echo $url;
mysql_select_db('40daysintheword', $con) || die(mysql_error());
}

$query = "INSERT INTO $table(host,firstname, lastname, address, city, phone, email, member childcare, grades)
VALUES('$_POST[host]', '$_POST[firstname]', '$_POST[lastname]', '$_POST[address]', '$_POST[city]', '$_POST[phone]', '$_POST[email]', '$_POST[member]', '$_POST[childcare]',
'$_POST[grades]";

LINE 14: $result = mysql_query($query) || die(mysql_error());

mysql_close($dbc);

?>

I will be grateful for any help I can get.

Thanks in advance!