RE: [PHP] PHP3 & mysql connect error
| From: | Jason Stechschulte | Date: | Thu, 13 Jul 2000 17:17:46 +0000 |
| Subject: | RE: [PHP] PHP3 & mysql connect error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6502@lists.php.net to get a copy of this message | ||
I could be way off, but it sounds like PHP was
installed without mysql support. --with-mysql
Jason Stechschulte
jpstech@nc.edu
-----Original Message-----
From: Rajesh Fowkar
[mailto:rfowkar@goatelecom.com]
Sent: Thursday, July 13, 2000 11:20 AM
To: PHP General Mailing List
Subject: [PHP] PHP3 & mysql connect error
Hi all,
I am a newbie to php and mysql. I subscribed to
this mailing list just yesterday.
My problem is :
If I try to connect to mysql server using the
following function, it gives me error.
my statements in php script :
--------------------------
$dbuser='rajesh';
$dbhost='localhost';
$dbpass='mypass';
$dbname='rajesh';
$mysql_link=mysql_connect
($dbhost,$dbuser,$dbpass);
error returned by browser :
-------------------------
Fatal error: Call to unsupported or undefined
function mysql_connect() in
/usr/local/httpd/htdocs/bookex1.php3 on line 14
However If I try to connect to mysql database
using command line client mysql it works fine.
What could be wrong ? Can anybody help me out
please ?
Thanks in advance.
--
Rajesh(ALIAS Shriram) Fowkar
--------------------------------------------------
------------------------------
How I Configured my SiS6215 Card
?Visit:http://rajesh.computers.webjump.com/linux.h
tml
Web Site : http://rajesh.computers.webjump.com/
Email :rfowkar@goatelecom.com
Address : KURTARKAR NAGARI, BLDG-C, FLAT NO. T4,
THIRD FLOOR, SHANTINAGAR,
PONDA - GOA. (INDIA) PHONE :
(0832)315932
Do not dwell in the past, do not dream of the
future, concentrate the mind
on the present moment. - Buddha
Scandisk is now checking your hard disk. You can
start praying. - Anon. :-)
--------------------------------------------------
-------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
php-general-unsubscribe@lists.php.net
For additional commands, e-mail:
php-general-help@lists.php.net
To contact the list administrators, e-mail:
php-list-admin@lists.php.net