The error is "No database selected". However, there is nothing wrong with the name because the database "forms" exists. When I use the "test" database on phpMyAdmin, it works fine but it doesn't work on an identical database of a different name. I say it is identical because I copied the database in phpyMyAdmin so I could be mistaken.

Here is my code:
PHP Code:
$con mysql_connect("localhost");
if (!
$con)
  {
  die(
'Could not connect: ' mysql_error());
  }

mysql_select_db("forms"$con);

$sql="INSERT INTO form_results (Name, Email, Subject, Message)
VALUES
('
$_GET[name]','$_GET[email]','$_GET[subject]','$_GET[message]')";

if (!
mysql_query($sql,$con))
  {
  die(
'Error: ' mysql_error());
  }
echo 
"<p>Your record has been successfully added to the database.</p>";

mysql_close($con);