Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-21-2005, 06:12 PM connecting to mysql
hiptobesquare's Avatar
Extreme Talker

Posts: 186
Location: London UK
Trades: 0
Hi.
I have been making a site which uses mysql and hosting it on my harddrive up until recently. Finally i have a domain name and hosting package. My question, perhaps a little simple, is where do i put my mysql tables on the host's server, and when connecting to my database on a page what do i use a as user, host and password? I gather i have to make accounts and delegate different privelages to each.
Currently my login looks like this on each page
PHP Code:
session_start();
$user="root";
$host="localhost";
$password="";
$database="doorstop";

$connection mysql_connect($host,$user,$password)   or die ("couldn't connect to server");
$db mysql_select_db("doorstop")                    or die ("coudn't locate the database"); 
I know this is a silly question, I have books on php and mysql but they seems pretty vague to me. Is anybody aware of a walkthrough lesson anywhere on the interweb which would help me out with this?

Thanks for reading.
hiptobesquare is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-21-2005, 06:25 PM
Average Talker

Posts: 21
Name: Connor
Location: Knob Noster, Mo
Trades: 0
What control panel are you using?
Connor is offline
Reply With Quote
View Public Profile Visit Connor's homepage!
 
Old 09-21-2005, 06:30 PM
hiptobesquare's Avatar
Extreme Talker

Posts: 186
Location: London UK
Trades: 0
errrr. i havnt been using any control pnl. the localhost program ive been using is called xampp and just gives me a folde called mysql to keep my tables in. I will look into getting a control panel. ta very much
hiptobesquare is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to connecting to mysql
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.59292 seconds with 12 queries