raja,
check whether mysql extension is enabled in /etc/php.ini. remove the ';'
character at the line ;extension=mysql.so , if so. By default it had been
decommented.
hope it works
Guru
On Thu, 11 Mar 2004 18:21:46 +0000 (GMT), "gilbert raja"
<raja_gilbert@xxxxxxxxxxx> said:
dear sir,----------------------
i'm unable to connect the mysql database into my php program. my
sample program is :
dbconn.php
-----------------
<?php
mysql_connect("localhost","root","") or die ("unable to connect mysql");
mysql_db_select("mydb") or die ("unable to select database");
?>
select.php
=======
<?php
include("dbconn.php");
$query("select * from employees");
'
;
;
;
;
?>
the output is
undefined function mysql_connect.
i don't know the problem. i'm new to php and mysql.
i'm using RH linux 9.0, mysql 3.22 and php 4.2.2.
and apache server.
pls give me a solution to solve this problem
(@ @)
||
=o0==================
| |
| "Known is Drop" |
| Unknown is Ocean" |
| |
| |
| |
=================0o=
Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.