MyPHP code that I wrote keeps printing everything that I wrote onto the web page. Here is a picture:
And here is the source code:
<?php
define('DB_NAME', 'reg_form');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost');
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if (!$link) {
die('Could not connect: ' . mysql_error());
}
$db_selected = mysql_select_db(DB_NAME, $link);
if (!db_selected) {
die('Can\'t use ' . DB_NAME ': ' . mysql_error());
}
?>
Thanks. - Hayes Derbyshire