<!--
/**
 * Licensed to The Apereo Foundation under one or more contributor license
 * agreements. See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.

 * The Apereo Foundation licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 -->
<html>
	<head>
		<style>

			html{
	
				font-family:arial;

			}

		</style>

	</head>
	<body>
	Running a test for MySQL error reporting. Having MySQL functions mysql_errno and mysql_error makes allows for easier debugging of mysql problems. <br>
	We've deliberately made a mysql function fail to see what errors you get.<br><br><br>
<?PHP

	$response = mysql_connect("","","");

	if(!$response){

		echo "The MySQL error number is " . mysql_errno() . "<br>";
		echo "The MySQL error string is " . mysql_error() . "<br>";

	}else{

		echo "Default connection achieved <br>";

	}
?>
<form action="mysql_iframe_3.php">
<input type="submit" value="Next test" />
</form>
<form action="mysql_iframe_2.php">
<input type="submit" value="Try again" />
</form>
