|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
|
Maybe a little PHP/MySQL help is needed...
Hey.
The code that I’m trying to get to work is as follows. The problem is with the 7th, 8th, and 9th lines... PHP Code:
I have installed PHP and MySQL, and the MySQLadmin.exe prog doesnt provide much help... Thanks a lot. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Contact your host admin, I only see a blog on that link.
|
|
|
|
|
|
#3 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Kind of confusing in your post. It looks like that you are wanting to test this on your local build before you upload it to your website. If so, host would be localhost. Default user would be 'root' and password would be blank ''.
$host = 'localhost'; $user = 'root'; $password = ''; You can't really run the script on your local computer using the database on the site.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
|
|
#4 | |
|
Member (8 bit)
|
Quote:
"{shows lines of code that i posted originally, i copied the file from the CD, that's how i know there's nothing wrong with the code...} Lines 7, 8, and 9 of that program need to be changed. These lines are $host = 'hostname'; $user = 'mysqlaccount'; $password = 'mysqlpassword'; Change host to the name of the computer where MySQL is installed - for example, databasehost.mycompany.com. If the MySQL database is on the same computer as your web site, you can use localhost as the hostname. Change mysqlaccountname and mysqlpassword to the appropriate values. If your MySQL account does not require a password, then type nothing between the quotes" -that's from the book i'm using... I'm totally lost here... |
|
|
|
|
|
|
#5 | |
|
Member (8 bit)
|
Quote:
|
|
|
|
|
|
|
#6 |
|
Member (6 bit)
Join Date: Dec 2004
Posts: 54
|
that is their domain, you need to contact them to get this info, the host, your username and password that they will issue you. the domain is different from where they probably keep the MySQL server. so will need to talk to them and input the correct values into those lines.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|