Quote:
Originally Posted by zedman3d Awesome.
At 3:20 though, do you need to have the @? Because it wont show your password, usually just says 'yes' or something. |
Yes.
If you don't use the @, and your MySQL credentials are invalid, it will look like this:
Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'test'@'localhost' (using password: YES) in C:\WEB\public_html\test.php on line 8
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\WEB\public_html\test.php on line 9
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\WEB\public_html\test.php on line 9
If you do it the way I did it in the video, it will look like this:
Code:
could not connect to database!