Boolean Logic and MySQL Functions

Boolean Logic is an essential part of php when dealing with MySQL. If you do not understand boolean logic, a lot of the mysql functions may not make sense to you.

Take the commonly used mysql_fetch_array function. It is commonly used with a while loop in this manner:

[php]
while($row = mysql_fetch_array($query))
{
//Do something with the record data
}
[/php]

The condition for that while loop might not make sense if you haven’t created your own boolean functions.

Read the full article⇒