this is the code that is causing the errors. I was guessing it was my server but that seems to be ok.
<head>
<title>My Latest Jokes</title>
</head>
<body>
<?php
$dbcnx = @mysql_connect("localhost", "leerie", "zimazima");
if (!$dbcnx){
echo("<p>Unable to connect to the database server at this time.</p>");
exit( );
}
if (!@mysql_select_db("jokes") )
{
echo("<p>Unable to locate the joke database at this time.</p>");
exit( );
}
?>
<p>Here are all the jokes that are in our database:</p>
<?php
$result = mysql_query( "SELECT jokeText FROM jokes" );
if (!$result)
{
echo("<p>Error performing query: " . mysql_error( ) . "</p>);
exit( );
}
while ( $row = mysql_fetch_array($result) )
{
echo("<p>" . $row["jokeText"] . "</p>");
}
?>
</body>