PHP3 & mysql connect error
| From: | Rajesh Fowkar | Date: | Thu, 13 Jul 2000 15:20:19 +0000 |
| Subject: | PHP3 & mysql connect error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6471@lists.php.net to get a copy of this message | ||
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.html
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. :-)
---------------------------------------------------------------------------------