Copying other peoples scripts wont get you anywhere.
Using unoriginal copied scripts can get websites to work, albeit in a likely clumsy manner and if something goes wrong, one will have little idea what's going on and how to fix it.
I have an error: Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/u700245254/public_html/checklogin.php on line 2
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/u700245254/public_html/checklogin.php on line 2
Surprised that everyone seems to have forgotten to tell him that he needs to encrypt passwords that are entered into the database, preferably with crypt(), since it can't be brute-forced and isn't easily cracked like md5()
Naw, I'd say it's the same difficulty. Now all you do is check the database for the information that was submitted via the log in form. Using mysql_num_rows(), check if the information shows up once and if it does, set a $_COOKIE or $_SESSION (my new site does both, and is quite good if I do say so myself) if the information is valid.
It's my job to help the next generation, and set a good example for them. And for that I'll gladly lay down my life.