This is really silly. I've just migrated onto another linux box and I'm trying to get my program working again.
I have a function called connectfunct2()
It's telling me
Fatal error: Call to undefined function: mysql_connect() in /var/ on line 5
Line 5 is this...
I'm boggled because I thought it would show me the "Can't connect :" error message if the location, username and password were incorrect? I'm sure the connecting parameters are correct, so why else would it say that it's an undefined varable?
Can anyone give me some clues please.....
Tony
I have a function called connectfunct2()
It's telling me
Fatal error: Call to undefined function: mysql_connect() in /var/ on line 5
Line 5 is this...
Code:
$db=mysql_connect("localhost","","")or Die("Can't connect :" .mysql_error());
I'm boggled because I thought it would show me the "Can't connect :" error message if the location, username and password were incorrect? I'm sure the connecting parameters are correct, so why else would it say that it's an undefined varable?
Can anyone give me some clues please.....
Tony