views:

24

answers:

2

I'm writing a php library that handles different products, somewhere in my class I must have a missing curly brace or something but I can't find it.

Does someone with a debugger or keen eyes see anything wrong with this code?

http://pastie.org/953994

Thanks in advance!

Edit: I think it's something with the query in the EquipmentDatabase class

A: 

Yep. There's a missing curly brace. Try inserting it either at the end (if you're defining the EquipmentDatabase inside of the Equipment class) or at the very end of the file before ?> (if you're defining two separate classes.

amphetamachine
I don't see where the missing curly brace is... I am defining two separate classes, each have closing braces.
ThinkingInBits
+2  A: 

ln 237, missing close quote...

acmatos
Thanks, this was the problem!
ThinkingInBits
glad to help :)ever considered using an editor with nice syntax highlighting?
acmatos
No never, classic notepad all the way :D
ThinkingInBits