Possibly even easier would be to change the CREATE DB syntax to -
CREATE DATABASE /*!32312 IF NOT EXISTS*/ my_database_name
This assumes you don't really care about an error code being returned if
it does already exist.
Shawn Sellars
-Original Message-
> if ( database doesn't exists )
>
"Raheel Hussain" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> hi,
>
> I m a newbie programmer and has just started working on php, i m not
actually having much problem in it as because i have backgroud of C/C++ and
vb and ASP and Pascal etc.
> I have a l