The most amusing things happen when you’re been coding a long time. I found, and used a “hole” in one of our database routines (which has since been fixed) getOneValueFromTable($srcTable, $srcField, $whereField, $whereValue); produces SQL like “SELECT $srcField FROM $srcTable WHERE $whereField = ‘$whereValue’”. Can you spot the potential problems in something like this? Consider [...]
-
Home > Archives for Friday, April 14th, 2006