View Single Post
Old 03-04-2009, 04:41 PM   #4 (permalink)
CrazeD
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,687

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: My PHP Video Tutorials

Quote:
Originally Posted by zedman3d View Post
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!

__________________

Need website help? PM me!
CrazeD is offline   Reply With Quote