There virables.
<?php
$host = 'localhost';
$username = 'database username';
$pass = database username Password.';
$database = 'Database name linked to user.';
$sitename = 'Title I think.';
$website = 'Give it a try.';
?>
|
I feel like such a noob.... Alright I have my own website, and GoDaddy is hosting for me, so I went into my hosting control center and made a MySQL database, user and pass, and put the files into my "Files" section, so I have everything set up. This is how the server status looks:
http://runekings.com/sstatus/
But it has a Warning at the top.
This is my code:
So please help me :/ Thanks<?php
$host = 'What do I put here?';
$username = 'My user, I know what this is';
$pass = 'My pass, I know what this is.';
$database = 'I know what this is.';
$sitename = 'My site is RuneKings.com, so do I just put RuneKings?';
$website = 'Do I just put www.RuneKings.com ?';
?>
---------- Post added at 04:12 AM ---------- Previous post was at 04:03 AM ----------
No one helps in this section aynmore
---------- Post added at 04:17 AM ---------- Previous post was at 04:12 AM ----------
Bumpppp
---------- Post added at 04:22 AM ---------- Previous post was at 04:17 AM ----------
Bump
There virables.
<?php
$host = 'localhost';
$username = 'database username';
$pass = database username Password.';
$database = 'Database name linked to user.';
$sitename = 'Title I think.';
$website = 'Give it a try.';
?>
Nope
what about you do it this way.
adding onto johnny's post.
<?php
$host = 'localhost';
$username = 'username'; - Create a user in your phpmyadmin
$pass = Password.'; - The password for the user you just created
$database = 'database name you just created >.'; - Create a database which should be simple.
$sitename = 'Title I think.';
$website = 'Give it a try.';
?>
so say you hosted from your own computer. and you wanted to use the root access *not recommended* but still. you would do it soemthing like this.
<?php
$host = 'localhost';
$username = 'root';
$pass = 'password.';
$database = 'website';
$sitename = 'e.g. Runeserver.';
$website = 'simple stuff';
?>
You can get the DB host from GoDaddy.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |