Cloud Computing
>
Support
>
MySQL Issues.
http://www.bodhost.com/forum/
MySQL connection & PHP
User Name
Remember Me?
Password
Thread Tools
Display Modes
#
1
(
permalink
)
04-23-11, 00:34
LindyTaylor
BOD Member
Join Date: Nov 2010
Posts: 57
MySQL connection & PHP
Hi
How do I set up a MySQL database connection using PHP?
#
2
(
permalink
)
04-23-11, 00:40
Irene9001
BOD Member
Join Date: Nov 2010
Posts: 104
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');
«
mySQL access with SQLyog
|
Backups of my data
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Sales
Hosting Services
Web Hosting Offers
Hosting Pre-Sales Forum
Customer Testimonials
Hosting Polls
Support
Network Status
Tutorials and Documentation
Control Panel Forum
PHP Forum
vps hosting
MySQL Issues.
Dedicated hosting
Linux Server Hosting
Windows Dedicated Server
Services
ECommerce Forum
General Discussion
Introduction
General Discussion Forum
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.
-- Default Style
-- Soness Fluid
Web Server Hosting
-
Contact Us
- -
Members
-
Register
-
Calendar
-
Search
-
FAQ