Ray,
I wanted to let you know I soved one bug with this.
It seems when I used Cpanel Wizard to set up a database, it would create the db name and the username the same name.
Everything worked just like this example, except the query builder.
By chance I had to add a new user to the DB and I decided to try it on the site. Once I did the change, the query builder started working again!
I just wanted to share this with you guys. You never know, that might be the problem!
Thanks
$hostname_website = "localhost";
$database_website = "example_webadmin";
$username_website = "example_webadmin";
$password_website = "";