|
1) Is this a custom class that you've written? Have you tried taking a look at mysqli? It's an class based implementation of PHP's mySQL API. It's actually pretty well done.
2) Are you including this class from more than one place? Have you tried changing to include_once() instead of just include() ?
3) Is sql a reserved name? I'm not sure, but I wouldn't be surprised if this is an invalid name used already by PHP
|