سؤال

I'm getting an error telling me that I have called an undefined function, but I know the function is defined in the include. Am I using the wrong syntax?

هل كانت مفيدة؟

المحلول

You didn't call the BeerEditor class as i can understand from your code so you can fix it by something like this

$beer_editor = new BeerEditor($dbconn);
$beer_editor->addBeer($new_beer);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top