![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Are $userdata and $user_data supposed to be the same thing?
As for the
$link = mysql_connect('host', 'username', 'password') or die('Could not connect: ' . mysql_error());
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#12 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
as for the $userdata and $user_data thing, i have no ide :p
and no, evalution did not work. |
|
|
|
|
|
#13 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
For the connection error, I think I would bring up the mySQL command line and just run the connect statement by hand. That'll tell you whether or not the parameters to the call are correct. Your inclusion of the actual mySQL error is a good thing -- it lets you know there's an actual error and not just a bungup in the test for success. Once you get that resolved, then the rest of your problems can be banged out one at a time. You are definitely going to have to find out if you have two highly similar names ($userdata and $user_data). I doubt it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#14 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
yeah, those variables are from phpbb
and thanks for the help! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|