|
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
NSBQ nut
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2001
Location: .de
Posts: 1,208
|
Problem when connecting to a MySQL-DB using PHP
I used this code:
PHP Code:
__________________
Bred for its skills in magic Last edited by Nezzar; December 31st, 2001 at 09:41. |
|
|
|
|
|
#2 (permalink) |
|
Ultraman Agent
![]() ![]() ![]() ![]() Join Date: May 2001
Location: 0101001111010110101001
Posts: 680
|
You must have the exact information on your MySQL account (database name, user name, password), otherwise it won't work.
Look at here: $dbserver = "localhost"; <-- no need to change this, most server use localhost as default $dbname = "php-test"; <-- your database name $dbuser = "root"; <-- your user name $dbpass = ""; <-- don't fill this blank, or MySQL think it's anonymous
__________________
= hah hah hah! I'm back! not! = --- Last edited by 404 on 09-09-99 at 06:66 AM |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|