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

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



Make sure you have enabled mysql support in /etc/httpd/php.ini



-----Mensaje original-----
De: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]En nombre de Davide
Spanò
Enviado el: lunes, 22 de julio de 2002 16:01
Para: cobalt-developers@xxxxxxxxxxxxxxx
Asunto: [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ò


_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers