SQL: an example would be the top of the military planner:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, string given in /var/battlemaster/include/db.inc on line 233
PHP looks somewhat similar, but it will likely have a lot more lines.
You could look at the bugtracker, in those categories, for examples.