InMotion Hosting Support Center

Database connection

Category: Databases

Enese
Asked:
2013-02-25 1:12 pm EST

Hits: 369
Hello,
I created database, user and download xampp, but I dont know how to connect my database's url. How can I connect to my database through my code? What is the url of my database or php file? Which php file should I edit?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

jamesr
5,889 Points
2013-02-25 1:18 pm EST
Thank you for your question Enese!

You can check the following tutorial on how to connect to a database.

<a href="http://www.inmotionhosting.com/support/website/databases/connecting-to-a-database-using-php" target="_blank">Connecting to a Database using PHP</a>
http://www.inmotionhosting.com/support/website/databases/connecting-to-a-database-using-php

You will need that at the top of every page that connects or include it in an include file.

Best Regards,
James R

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!