> On Wednesday 06 March 2002 15:53, [EMAIL PROTECTED] wrote: > >> Hi, >> >> I'm new to MySql, when I try to connect my PHP-script with >> mysql_connect($host, $user, $pass) >> my script returns the error >> "Fatal error: Call to undefined function: mysql_connect()" >> I have given the user all rights in MySQL, both on host, DB, tables, >> and fields >> >> This might be easy for you, but I'm stuck..any help / comments are >> appreciated > > It means you do not have mysql support in PHP. If you compiled PHP > yourself, recompile it to include mysql support. If you installed it > via RPM then look for the appropriate RPMs from distro vendor.
A great way to check this is to create a simple script called phpinfo.php with just this line in it, place it in your top level web directory: <? phpinfo(); ?> Point your browser to http://localhost/phpinfo.php (assuming the computer you are using is your web server) You should see the ./configure command used to compile PHP, look for --with-mysql. Josh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php