Archive

Posts Tagged ‘catchable error’

Why didn’t the programmer run their program?

November 21st, 2008 No comments

The error is simply this

mysql_quety(...);

If the programmer originally check their code by just running the script, the php parser would have immediately stated that it does not know the function “mysql_quety()”.  I’m surprised that this passed the programmers initial inspection.

This leads to the question in the title…

Categories: PHP Tags: ,

Our first tidbit was found by Sean!

November 21st, 2008 No comments

in our code…

<?php

$var = doQuery($something);

however, “doQuery” was never defined.  The original programmer never even ran the program after writing it.

Moral of the story, test your code at least by running it.

Categories: PHP Tags: ,