I have just started learning the concept of Object oriented programming and have put together a class for connecting to a database, selecting database and closing the databa
you're not returning anything from connectdb() yet you're passing this function's return to mysql_close().
connectdb()
mysql_close()