Re: MySQL problem with RedHat 8

From: Date: Fri, 17 Jan 2003 06:37:30 +0000
Subject: Re: MySQL problem with RedHat 8
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24914@lists.php.net to get a copy of this message
did you compile php with mysql support? foong "Daniel Elenius" <danel698@student.liu.se> wrote in message news:1042568521.1037.9.camel@p85.ryd.student.liu.se... > Hi! > > I'm trying to connect to my mysql database using something like > > mysql_connect( 'localhost', 'root', 'thepassword' ) > or die ( 'Unable to connect to server.' ); > > But I get the error message: > ?Fatal error: Call to undefined function: mysql_connect() in > /home/daniel/public_html/index.php on line 21 > > I have: > > [root@p85 /]# rpm -qa |grep sql > php-mysql-4.2.2-8.0.5 > mysql-3.23.52-3 > mysql-server-3.23.52-3 > mysql-devel-3.23.52-3 > > and: > > [root@p85 /]# rpm -q php > php-4.2.2-8.0.5 > > Someone mentioned these two settings in php.ini, which I tried with no > success: > > register_globals = On > short_open_tag = On > > phpinfo() says that php was compiled with '--with-mysql=shared,/usr' > > Can someone help me please? > > regards, > -- > Daniel Elenius <danel698@student.liu.se> >

« previous php.db (#24914) next »