Your error shows that there was no username passed
" Access denied for user ''@'localhost' to database 'linkyoutube'"
You are using mysqli_connect but then calling mysql_select_db afterwards, which is mysql not mysqli. With your call to mysqli_connect you are already selecting the DB with the fourth parameter. I think you simply need to delete the line:-