The problem has solved. I added:
require 'connect.inc.php';
register.php
<?php
require 'connect.inc.php';
....
?>
connect.inc.php
<?php
$mysql_host = 'localhost';
$mysql_user = 'root';
$mysql_pass = '';
$mysql_db = 'a_database';
if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass) || !@mysql_select_db($mysql_db)) {
die(mysql_error());
}
?>
P.S. It’s from the video tutorial: http://thenewboston.org/watch.php?cat=11&number=146