Re: Fatal error: Call to undefined function mysql_create_db()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This function is deprecated, and you ought to use mysql_query() to
send the CREATE DB sql anyway -- So the book is either out-dated or
just plain bad.

If the function doesn't exist, then you either don't have MySQL
extension to PHP installed, or your ISP has removed that function.

On Sat, May 27, 2006 5:02 am, Mark Sargent wrote:
> Hi All,
>
> I get the following,
>
> *Fatal error*: Call to undefined function mysql_create_db() in
> */usr/local/apache2/htdocs/createmovie.php* on line 6
>
> for this code,
>
>  5 //create the moviesite database
>  6 mysql_create_db("moviesite") or die(mysql_error());
>
> which is from a tutorial in the book I'm using. Any pointers? Code
> looks
> identical to the book's. Cheers.
>
> P.S. I also tried this,
>
> mysql_create_db("moviesite", $connect) or die(mysql_error());
>
> and
>
> mysql_create_db("moviesite", "$connect") or die(mysql_error());
>
> Mark Sargent.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux