[php] september 23 2011

PHP Code


die('Could not connect: ' . mysql_error());

Code Dissection
1. die() --- A PHP Function.
The die() function prints a message and exits the current script.
2. mysql_error() --- A PHP function.
The mysql_error() function returns the error description of the last MySQL operation.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s