Init function is not allowed
Where did you see this message? What code does it refer to?
There’s something in the code of that database class module you were using in another thread that display this error message, when you attempt to create the database class incorrectly. Can’t remember where the article you were getting the code from is. Compare how you create the database object on the line that gives you the error with the other ways that were working. Or post the code.
(ETA - here is the article, the static database class outputs that message : https://www.startutorial.com/articles/view/php-crud-tutorial-part-1 )
Are you trying to do something like?
function 1() {
...
}
function 2() {
...
}
function 3() {
...
}
Because you aren’t allowed to use numeric characters for functions. You could have the function starting with a numeric character and the rest with letter character, but the function can’t be all numeric characters.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.