
July 9th, 1999, 06:50 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
First, I'd suggest that you access the return values for the functions you are calling. i.e.:
$linkid=mysql_connect("localhost","username");
Then, I'd verify the connection:
if (!$linkid){
print mysql_error();
exit;
}
That might give you some more information.
Also, have you tried logging into mysql directly from a DOS shell? Actually, I'd do THAT first.
BTW, I'm not sure why you are getting the warning about "-1 is not a mysql link index".
According to the docs you should never get a negative number on a connection attempt. 0 for failure or the link id which is a positive integer.
Curious....
Rod
|