I am trying to create a login system but each time I try to log in with my username and password these messages come up:
Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\myfiles\connect.php on line 2
Fatal error: Call to undefined function mysql_connect_db() in C:\xampp\htdocs\myfiles\connect.php on line 3
This is all of the code I have in my connect.php file and I can see nothing wrong with it:
<?php
mysql_connect("localhost", "root", "password");
mysql_connect_db("cdcol");
?>