PDA

View Full Version : mySQL Code Not Working ;( Please Help


[Ostrich]
16-01-2001, 16:18
This is the code:

$Conn = mysql_connect ("localhost", "root", "PASSWORD")
or die ("Could not connect to localhost");

And this is the error:

Fatal error: Call to undefined function: mysql_connect() in loginpro.php on line 10

Now, I'm using the database password as opposed to the server password.

:)

Vampire
16-01-2001, 16:33
right now I'm at work, so i haven't got the time to chec it. I'll look 4 it tonight if you haven't found it.

Or take a look at http://www.zend.com. they have got about everything about PHP and My_SQL.

cheers,
:vampire:

Vampire
17-01-2001, 10:24
does you host has PHP3 or PHP4 installed?????????

When it is PHP3, perhaps that function didn't excist in PHP3.

Vampire
17-01-2001, 10:26
just found out thhat mysql_connect exsisted in PHP3. soz m8.

gonne look a bit further.

WildWayz
17-01-2001, 10:56
Hi Os - it should look a little like...

$connection = @mysql_connect("$servername", "$dbusername", "$dbpassword")
or die("Couldn't connect.");


Hmmmm what version on PHP and MySQL is installed?

I am using PHP 3.0.9 and MySQL Gamma thingie for Win32.

--WildWayz

[Ostrich]
17-01-2001, 11:08
It's version 4.0.2

:)