J
joezine
Guest
> I have some problem about php-mysql connection.
>
> I coded basicly php to connect with MySQL. This is code,
>
> $connect = mysql_connect("xxx.xxx.com", "user", "password")
> or die("die");
>
>
> * I cannot reveal my user and password but it's correct cause I can
> enter to mysql by this user and password.
>
>
>
> This is the result.
>
>
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/vhosts/xxxx.xxxxx.com/httpdocs/pontus.php on line 3
>
>
> I try to rpm -q php-mysql. It shows that "php-mysql-4.3.9-3.8".
>
> I try to "telnet xxx.xxx.com 3306". It shows that
>
> Trying 202.xxx.xx.xxx...
> Connected to xxx.xxx.com (202.xxx.xx.xxx).
> Escape character is '^]'.
> .
> 4.0.23-nt-logb}pC>L,
>
>
> It refer to the successful connection.
>
>
>
> Please suggest me.
>
> I coded basicly php to connect with MySQL. This is code,
>
> $connect = mysql_connect("xxx.xxx.com", "user", "password")
> or die("die");
>
>
> * I cannot reveal my user and password but it's correct cause I can
> enter to mysql by this user and password.
>
>
>
> This is the result.
>
>
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/vhosts/xxxx.xxxxx.com/httpdocs/pontus.php on line 3
>
>
> I try to rpm -q php-mysql. It shows that "php-mysql-4.3.9-3.8".
>
> I try to "telnet xxx.xxx.com 3306". It shows that
>
> Trying 202.xxx.xx.xxx...
> Connected to xxx.xxx.com (202.xxx.xx.xxx).
> Escape character is '^]'.
> .
> 4.0.23-nt-logb}pC>L,
>
>
> It refer to the successful connection.
>
>
>
> Please suggest me.