LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to connect to mysql database using php in Apache on Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-connect-to-mysql-database-using-php-in-apache-on-ubuntu-803295/)

communication 04-21-2010 08:54 AM

how to connect to mysql database using php in Apache on Ubuntu
 
how to connect to mysql database using php in Apache on Ubuntu?
thanks

TB0ne 04-21-2010 09:14 AM

Quote:

Originally Posted by communication (Post 3942712)
how to connect to mysql database using php in Apache on Ubuntu?
thanks

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.

PMP 04-21-2010 11:35 AM

Have your tried giving a quick google search for it, yow will receive many examples for it.

cola 06-02-2010 02:26 AM

Quote:

Originally Posted by communication (Post 3942712)
how to connect to mysql database using php in Apache on Ubuntu?
thanks

http://www.google.com/search?hl=en&q...=&oq=&gs_rfai=

fernfrancis 06-02-2010 03:50 AM

http://www.w3schools.com/php/php_mysql_connect.asp
refer the above site its very easy, just go through it


All times are GMT -5. The time now is 09:34 AM.