Go Back   Cloud Computing > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-11, 00:34
BOD Member
 
Join Date: Nov 2010
Posts: 57
Default MySQL connection & PHP

Hi

How do I set up a MySQL database connection using PHP?
Reply With Quote
  #2 (permalink)  
Old 04-23-11, 00:40
BOD Member
 
Join Date: Nov 2010
Posts: 104
Default re:

Hi

The database runs on the same web server (local host) as your website. Once you got log in details such as DB Name, User Name, and Password, you can set up a MySQL database connection with following command lines.
Quote:
mysql_connect('localhost','username','password');
mysql_select_db('database name');
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:49.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.