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);
سؤال
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);