[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] on qube3 php not talk to mysql



In my Qube3 there are php and mysql installed and both working but php will
not talk to mysql when a
script is run.
With telnet I'm able to read and write into mysql database and the <? echo
phpinfo() ?> command work perfectly. But if I try to talk with mysql by php
as following:

<?
$connessione = mysql_connect("xxx", "yyy", "zzz")
        or die('I CAN'T CONNECT');
if ($connessione) {
        $msg = "I'M CONNECTED
}
?>
<HTML>
<HEAD>
<TITLE>Connection to MySQL</TITLE>
</HEAD>
<BODY>
<? echo "$msg"; ?>
</BODY>
</HTML>
the following error message appair:

Fatal error: Call to undefined function: mysql_connect() in
/home/groups/home/web/connessione_db.php on line 3

many thanks - dave@xxxxxxx
davide spanò