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
[root@p85 /]# rpm -qa |grep sql
[root@p85 /]# rpm -q php
Someone mentioned these two settings in php.ini, which I tried with no
register_globals = On
short_open_tag = On
phpinfo() says that php was compiled with '--with-mysql=shared,/usr'
Can someone help me please?
Daniel Elenius <[EMAIL PROTECTED]>
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php