PHP: cannot redeclare class -
so have 3 classes in situation.
connection.php engineer.php status.php
both engineer , status classes use connection. hasn't been problem i'm using both classes in page i'm getting
fatal error: cannot redeclare class connection
is there way round this? in both classes need db access connection class.
thanks,
jonesy
instead of using include() use require_once() importing connection.php engineer.php , status.php.
Comments
Post a Comment