well,
this line
PHP Code:
connectdbase();
that looks like a function call but the function is never defined you are requird to either include the file where you defined that function or you must define the function within the same file but before you make the call.Before you can retrieve data from a MySQL database(or any databaseserver for that matter) you must be connected to it