In message <[EMAIL PROTECTED]>, snehashendure
<[EMAIL PROTECTED]> writes
>I can successfully create tables in MySQL.  But whenever I try to 
>create it from within php I get the folowing error
>
>"fatal error. unknown function mysql_connect()in 
>c:\inetpub\wwwroot\...."
>
>wht should i do to fix this error ? I am doing a project in PHP and 
>also new to PHP.

This means that the function mysql_connect() cannot be found.  It is
part of PHP, but *only* when PHP is set to run with MySQL.  It isn't a
problem with MySQL, it's a PHP problem.

I see that you are running it on your own computer.  You need to run
phpinfo() to see if you have PHP set to use MySQL.  Create a file with
just
<?php
phpinfo();
?>
and run that.  See if there is any reference to MySQL in the page that
it creates.  It should have a complete paragraph of it's own.

-- 
Pete Clark

Sunny Andalucia
http://hotcosta.com/Andalucia.Spain

Reply via email to