view _xampp/mysql.php @ 3:f196939ccc03

error handle and alert feedback to user. If error occurs, user'll not be halted by the loading page and sections_revisions will recovery to previous version.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 26 Jan 2015 12:19:39 +0100
parents b12c99b7c3f0
children
line wrap: on
line source

<?
	if(@mysql_connect("localhost"))
	{
		echo "OK";
	}
	else
	{
		echo "NOK";
	}
?>