LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2010, 08:54 AM   #1
communication
LQ Newbie
 
Registered: Apr 2010
Posts: 14

Rep: Reputation: 0
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
 
Old 04-21-2010, 09:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,806

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
Quote:
Originally Posted by communication View Post
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.
 
1 members found this post helpful.
Old 04-21-2010, 11:35 AM   #3
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Have your tried giving a quick google search for it, yow will receive many examples for it.
 
0 members found this post helpful.
Old 06-02-2010, 02:26 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by communication View Post
how to connect to mysql database using php in Apache on Ubuntu?
thanks
http://www.google.com/search?hl=en&q...=&oq=&gs_rfai=
 
Old 06-02-2010, 03:50 AM   #5
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 229

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to mysql database using php script shan_nathan Programming 4 10-17-2008 11:58 PM
Cannot connect to mysql database using php in Apache on Centos 5.1 OS homyangcha Linux - Newbie 1 06-30-2008 08:18 AM
Trying to get PHP to connect to a MySQL Database bassplayer69 Programming 16 03-13-2008 09:27 PM
Apache/PHP not talking to mysql database BorgAssimilator Linux - Software 1 11-11-2005 03:12 AM
cannot connect to mysql database from php rocordial Linux - Software 2 08-21-2005 02:05 PM


All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration