Very interesting formula. However, I would rather recommend something like this: mysql_query($sql); if ...
stackoverflow.com