The message says that PHP is being good to you. In
$conn = dbConnect(admin);
you left out the quotes surrounding
admin
. PHP couldn't find a symbol of that name, so it guessed you wanted quotes around it. Then it went on and did your query successfully.
Cheers,
Peter