How To connect my PHP website to MYSQL Database?

Asked By 130 points N/A Posted on -
qa-featured

Guys, please help me. I am new to PHP programming and I'm having a hard time in connecting the database to my PHP site. Please help me with this.

SHARE
Best Answer by june_07
Answered By 0 points N/A #112466

How To connect my PHP website to MYSQL Database?

qa-featured

Hi Jenna,

Make sure your MYSQL is properly installed and also your MYSQL server. That way you can connect your site to its database. I also recommend you to use wamp server. You can use it easily. It has a PHP my admin that you can use for your database.

Answered By 130 points N/A #112467

How To connect my PHP website to MYSQL Database?

qa-featured

Thanks Mr. Pheetong.  Maybe I'm having a problem with my sqlyog installer. I will try to use the wampserver and will tell you if this will solve my problem.

Thanks.

Best Answer
Best Answer
Answered By 0 points N/A #112468

How To connect my PHP website to MYSQL Database?

qa-featured

It's a good thing you use wampserver, to view your website. You need to put your website folder to local disk C:/wampserver and paste it to www folder. Now open your web browser. You should view your files here, if the wamp server is properly installed.

Answered By 130 points N/A #112470

How To connect my PHP website to MYSQL Database?

qa-featured

Thanks, Mr.June. I've finished downloading the wamp server. Does wampserver already have a database? How can I put my old database in to it?

Sorry I'm new to web programming.

Answered By 130 points N/A #112472

How To connect my PHP website to MYSQL Database?

qa-featured

Thanks a lot guys. I already installed the Wampserver and I can already connect my PHP website to my database.

More power to this site.

Answered By 0 points N/A #112473

How To connect my PHP website to MYSQL Database?

qa-featured

You're welcome Jenna. If you have any other questions, feel free to post them here in this website. A lot of forumers can help you with your problems, ^_^.

Related Questions