Originally Posted by communication
how to connect to mysql database using php in Apache on Ubuntu?
You make sure you've got PHP, Apache, and MySQL installed, and that you've installed the PHP MySQL modules. You then write a PHP web page that connects to the database, and displays the data.
Really, your question is very vague. There is much documentation on this available via Google, along with sample PHP pages.