mysq_connect()

From: Date: Thu, 30 Jan 2003 20:57:26 +0000
Subject: mysq_connect()
Groups: php.general 
Request: Send a blank email to php-general+get-133697@lists.php.net to get a copy of this message
Hi there, my name is Cesar Rodriguez and I am trying to upgrade from Caldera Linux Server 2.3 into RedHat Server 8.0. The problem I encounter is that after testing different scripts, php is working, except when I make an MySQL call like mysql_connect() or mysql_pconnect(). The call is as follows: $link = mysql_connect('localhost', 'user1', 'passwd') or exit(); mysql_select_db ('mydb') or exit (); $result = mysql_query ('SELECT COUNT(*) FROM clients') or exit (); if ($row = mysql_fetch_array ($result)) ..... etc ...... The message I get is: "Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php" Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its place apparently. I re-installed everything from scratch with no positive result. I would appreciate advice on this issue. Thanks Cesar Rodriguez

« previous php.general (#133697) next »