how do i test database connection in php using sybase central database if it is connecting or not?
Have you read about the return values of [man]sybase_connect[/man]?
Do you really need two separate threads for how to make a connection and how to test if it worked?