2013-10-03, 14:39
I had this error when I browsed to the submit.php page:
Strict Standards: Non-static method mysql_connection::get_instance() should not be called statically in /home/xxx/public_html/buggalo/config.php on line 9
The problem was the following
This code (in config.php):
has to be changed to:
Strict Standards: Non-static method mysql_connection::get_instance() should not be called statically in /home/xxx/public_html/buggalo/config.php on line 9
The problem was the following
This code (in config.php):
Code:
new mysql_connection('database', 'localhost', 'username', 'password');
$conn = &mysql_connection::get_instance();
$conn->open();
has to be changed to:
Code:
$conn = new mysql_connection('database', 'localhost', 'username', 'password');
$conn->get_instance();
$conn->open();