kingandy: (Default)
[personal profile] kingandy
One thing I love about php is the ability to go:

$result = mysql_query($query) or die();

The "or" syntax just means, "if this operation returns false, perform this other action" - used mostly for error reporting or whatever.  The "die" function stops processing the page (and, yes, there's usually some useful error message inside those brackets but for the purposes of this post that's not important).

I just really enjoy telling a page to commit seppuku if it fails in its duties.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

March 2012

S M T W T F S
    123
45678910
11121314151617
18192021222324
25 262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 11th, 2025 12:34 am
Powered by Dreamwidth Studios